Skip to contentSkip to conversation

netfilter: nfnetlink_queue: fix compilation problem due missing header

PATCH In review Pablo Neira Ayuso 2 participants 2 messages Jan 6, 2014

Subsystems (3)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 netfilter: nfnetlink_queue: fix compilation problem due missing header

In 08c0cad ("netfilter: nfnetlink_queue: enable UID/GID socket info retrieval"), the header that defines TCP_TIME_WAIT.

net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_put_sk_uidgid':
net/netfilter/nfnetlink_queue_core.c:304:35: error: 'TCP_TIME_WAIT' undeclared (first use in this function)
net/netfilter/nfnetlink_queue_core.c:304:35: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [net/netfilter/nfnetlink_queue_core.o] Error 1

---
Hi David,

Please, put this patch into net-next. It seems this compilation problem is depending on the .config selections as I didn't reproducible when testing the patches.

Thanks!

 net/netfilter/nfnetlink_queue_core.c |    1 +
 1 file changed, 1 insertion(+)
net/netfilter/nfnetlink_queue_core.c +1 -0
index d3cf12b..ce20bd8 100644
@@ -32,6 +32,7 @@
 #include <net/netfilter/nf_queue.h>
 #include <net/netns/generic.h>
 #include <net/netfilter/nfnetlink_queue.h>
+#include <net/tcp_states.h>
 
 #include <linux/atomic.h>
 
Signature · 1 line
1.7.10.4
Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Pablo Neira Ayuso

In 08c0cad ("netfilter: nfnetlink_queue: enable UID/GID socket info retrieval"), the header that defines TCP_TIME_WAIT.

net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_put_sk_uidgid':
net/netfilter/nfnetlink_queue_core.c:304:35: error: 'TCP_TIME_WAIT' undeclared (first use in this function)
net/netfilter/nfnetlink_queue_core.c:304:35: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [net/netfilter/nfnetlink_queue_core.o] Error 1

---

Thanks Pablo !