Skip to contentSkip to conversation

netfilter enum conflict?

DISCUSSION Mark James 2 participants 2 messages Jan 1, 2001 – Jan 2, 2001 netfilter

lore
Share & tools
lore

Mark James

author
#0 lore raw

Hi:

include/linux/netfilter_ipv4.h and include/linux/netfilter_ipv6.h both define enum nf_ip_hook_priorities. This trips the compiler if both are included. Should one change to nf_ipv6_hook_priorities?

Mark
-
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

In message <[email protected]> you write:

Quoted 5 lines

Hi:

include/linux/netfilter_ipv4.h and include/linux/netfilter_ipv6.h both define enum nf_ip_hook_priorities. This trips the compiler if both are included. Should one change to nf_ipv6_hook_priorities?

Yes. Only noone has ever included both yet.

Rusty.
--
Hacking time.

include/linux/netfilter_ipv6.h renamed from include/linux/netfilter_ipv6.h.~1~ +1 -1
@@ -54,7 +54,7 @@
 #define NF_IP6_NUMHOOKS		5
 
 
-enum nf_ip_hook_priorities {
+enum nf_ip6_hook_priorities {
 	NF_IP6_PRI_FIRST = INT_MIN,
 	NF_IP6_PRI_CONNTRACK = -200,
 	NF_IP6_PRI_MANGLE = -150,

-
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/