Skip to contentSkip to conversation

Problem compiling 2.5.44 (net/ipv4/raw.c)

DISCUSSION Juan M. de la Torre 3 participants 3 messages Oct 22, 2002 – Oct 23, 2002 Networking

lore
Share & tools
lore
#0 lore raw

net/ipv4/raw.c: In function `raw_send_hdrinc':
net/ipv4/raw.c:297: `NF_IP_LOCAL_OUT' undeclared (first use in this function)
net/ipv4/raw.c:297: (Each undeclared identifier is reported only once net/ipv4/raw.c:297: for each function it appears in.) make[2]: *** [net/ipv4/raw.o] Error 1
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h (NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).

Regards,
Juanma

Signature · 1 line
/jm
#1 lore raw
Quoted 10 lines · Juan M. de la Torre

net/ipv4/raw.c: In function `raw_send_hdrinc':
net/ipv4/raw.c:297: `NF_IP_LOCAL_OUT' undeclared (first use in this function)
net/ipv4/raw.c:297: (Each undeclared identifier is reported only once net/ipv4/raw.c:297: for each function it appears in.) make[2]: *** [net/ipv4/raw.o] Error 1
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

Quoted 2 lines

net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h (NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).

Fixed in -ac1 - you can just grab the net/ipv4/raw.c fix if need be

#2 lore raw
Quoted 11 lines · Alan Cox
Quoted 10 lines · Juan M. de la Torre

net/ipv4/raw.c: In function `raw_send_hdrinc':
net/ipv4/raw.c:297: `NF_IP_LOCAL_OUT' undeclared (first use in this function)
net/ipv4/raw.c:297: (Each undeclared identifier is reported only once net/ipv4/raw.c:297: for each function it appears in.) make[2]: *** [net/ipv4/raw.o] Error 1
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

Quoted 4 lines
Quoted 2 lines

net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h (NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).

Fixed in -ac1 - you can just grab the net/ipv4/raw.c fix if need be

Please remove include for netfilter.h as this is already included in netfilter_ipv4.h.

net/ipv4/raw.c renamed from net/ipv4/raw.c.orig +1 -1
@@ -64,7 +64,7 @@
 #include <net/raw.h>
 #include <net/inet_common.h>
 #include <net/checksum.h>
-#include <linux/netfilter.h>
+#include <linux/netfilter_ipv4.h>
 
 struct sock *raw_v4_htable[RAWV4_HTABLE_SIZE];
 rwlock_t raw_v4_lock = RW_LOCK_UNLOCKED;
Signature · 2 lines
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/