[PATCH] RTNet builtin kernel - Fix IP protocols

François Legal devel at thom.fr.eu.org
Fri Apr 3 10:37:53 CEST 2020


From: François LEGAL <devel at thom.fr.eu.org>

The link order of IP protocols does not allow to do UDP/TCP over IP with RTNet builtin as protocol list gets zeroed by af_inet when initializing

Signed-off-by: François LEGAL <devel at thom.fr.eu.org>

Subject: [PATCH] RTNet builtin kernel - Fix IP protocols
---
 kernel/drivers/net/stack/ipv4/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/net/stack/ipv4/Makefile b/kernel/drivers/net/stack/ipv4/Makefile
index f0fcd36..7d45d23 100644
--- a/kernel/drivers/net/stack/ipv4/Makefile
+++ b/kernel/drivers/net/stack/ipv4/Makefile
@@ -1,9 +1,5 @@
 ccflags-y += -Idrivers/xenomai/net/stack/include
 
-obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_UDP) += udp/
-
-obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_TCP) += tcp/
-
 obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4) += rtipv4.o
 
 rtipv4-y := \
@@ -16,4 +12,8 @@ rtipv4-y := \
 	ip_output.o \
 	ip_fragment.o
 
+obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_UDP) += udp/
+
+obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_TCP) += tcp/
+
 rtipv4-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_ICMP) += icmp.o
-- 
2.1.4




More information about the Xenomai mailing list