Skip to contentSkip to conversation

test10-pre7 compile error in ip_forward.c

DISCUSSION Decklin Foster 2 participants 3 messages Oct 31, 2000

lore
Share & tools
lore
#0 lore raw

I'm getting this when I try to compile test10-pre7:

make[3]: Entering directory `/home/decklin/src/kernel/linux/net/ipv4' gcc -D__KERNEL__ -I/home/decklin/src/kernel/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -c -o route.o route.c
gcc -D__KERNEL__ -I/home/decklin/src/kernel/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -c -o ip_forward.o ip_forward.c
ip_forward.c: In function `ip_forward':
ip_forward.c:139: `NET_RX_BAD' undeclared (first use in this function) ip_forward.c:139: (Each undeclared identifier is reported only once ip_forward.c:139: for each function it appears in.)
make[3]: *** [ip_forward.o] Error 1

Signature · 6 lines
There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There
are no ABSOLUTE STATEMENTS. I'm very probably wrong. -- BSD fortune(6)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw

Sorry. Please try this patch below. Linus, please apply:

linux/netdevice.h renamed from linux/netdevice.h.~1~ +1 -0
@@ -55,6 +55,7 @@
 #define NET_RX_CN_MOD		2   /* Storm on its way! */
 #define NET_RX_CN_HIGH		5   /* The storm is here */
 #define NET_RX_DROP		-1  /* packet dropped */
+#define NET_RX_BAD		-2  /* packet dropped due to kernel error */
 
 #define net_xmit_errno(e)	((e) != NET_XMIT_CN ? -ENOBUFS : 0)
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Decklin Foster
Quoted 1 line · David S. Miller

Sorry. Please try this patch below. Linus, please apply:

This fixes it -- thanks.

Quoted 9 lines
linux/netdevice.h renamed from linux/netdevice.h.~1~ +1 -0
@@ -55,6 +55,7 @@
 #define NET_RX_CN_MOD		2   /* Storm on its way! */
 #define NET_RX_CN_HIGH		5   /* The storm is here */
 #define NET_RX_DROP		-1  /* packet dropped */
+#define NET_RX_BAD		-2  /* packet dropped due to kernel error */
 
 #define net_xmit_errno(e)	((e) != NET_XMIT_CN ? -ENOBUFS : 0)
Signature · 6 lines
There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There
are no ABSOLUTE STATEMENTS. I'm very probably wrong. -- BSD fortune(6)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/