Hello, when both nat and connection tracking for TFTP protocol is turned on, the linking fails:
net/ipv4/netfilter/ip_nat_tftp.o(.bss+0x0): multiple definition of `ip_nat_tftp_hook' net/ipv4/netfilter/ip_conntrack_tftp.o(.bss+0x0): first defined here The following patch fixes it, please apply. diff -ruN linux-2.6.11-rc2.old/include/linux/netfilter_ipv4/ip_conntrack_tftp.h linux-2.6.11-rc2/include/linux/netfilter_ipv4/ip_conntrack_tftp.h --- linux-2.6.11-rc2.old/include/linux/netfilter_ipv4/ip_conntrack_tftp.h 2005-01-22 02:47:31.000000000 +0100 +++ linux-2.6.11-rc2/include/linux/netfilter_ipv4/ip_conntrack_tftp.h 2005-01-25 18:50:20.000000000 +0100 @@ -13,7 +13,7 @@ #define TFTP_OPCODE_ACK 4 #define TFTP_OPCODE_ERROR 5 -unsigned int (*ip_nat_tftp_hook)(struct sk_buff **pskb, +extern unsigned int (*ip_nat_tftp_hook)(struct sk_buff **pskb, enum ip_conntrack_info ctinfo, struct ip_conntrack_expect *exp); diff -ruN linux-2.6.11-rc2.old/net/ipv4/netfilter/ip_conntrack_tftp.c linux-2.6.11-rc2/net/ipv4/netfilter/ip_conntrack_tftp.c --- linux-2.6.11-rc2.old/net/ipv4/netfilter/ip_conntrack_tftp.c 2005-01-22 02:47:32.000000000 +0100 +++ linux-2.6.11-rc2/net/ipv4/netfilter/ip_conntrack_tftp.c 2005-01-25 18:47:28.000000000 +0100 @@ -38,9 +38,6 @@ #define DEBUGP(format, args...) #endif -unsigned int (*ip_nat_tftp_hook)(struct sk_buff **pskb, - enum ip_conntrack_info ctinfo, - struct ip_conntrack_expect *exp); EXPORT_SYMBOL_GPL(ip_nat_tftp_hook); static int tftp_help(struct sk_buff **pskb, -- JiKos. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/