test10-pre7 compile error in ip_forward.c
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.cip_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/
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/
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/