Bug: depmod assigns ipt_MASQUERADE to ipchains, not to ip_tables

From: Xuan Baldauf (technik--lkml@exmail.de)
Date: Mon Jun 05 2000 - 17:09:41 EST


Maybe this bug is known, but I could not find it:

If you compile linux2.4.0-test1-ac8 with following parameters (full
netfilter module support):

CONFIG_NETFILTER=y
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_QUEUE=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_STATE=m
CONFIG_IP_NF_MATCH_UNCLEAN=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_MIRROR=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_COMPAT_IPCHAINS=m
CONFIG_IP_NF_NAT_NEEDED=y

You get (besides others) modules "ipchains.o" and "ip_tables.o". I
suppose they export symbols with the same or similar names, because if
you include ipchains.o in a depmod run, ipt_MASQUERADE depends on
ipchains, if you don't, ipt_MASQUERADE does not depend on it. This is
quite nasty, because ipt_MASQUERADE actually is incompatible with
ipchains.

router|23:57:41|/usr/src/linux> depmod -e
/lib/modules/2.4.0-test1-ac8/ipv4/{ipt_MASQUERADE,ipchains,iptable_nat,ip_tables,ip_conntrack}.o

/lib/modules/2.4.0-test1-ac8/ipv4/ipt_MASQUERADE.o:
/lib/modules/2.4.0-test1-ac8/ipv4/ipchains.o
/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o

/lib/modules/2.4.0-test1-ac8/ipv4/ipchains.o:

/lib/modules/2.4.0-test1-ac8/ipv4/iptable_nat.o:
/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o
/lib/modules/2.4.0-test1-ac8/ipv4/ipchains.o
/lib/modules/2.4.0-test1-ac8/ipv4/ip_conntrack.o

/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o:

/lib/modules/2.4.0-test1-ac8/ipv4/ip_conntrack.o:

router|23:57:51|/usr/src/linux> depmod -e
/lib/modules/2.4.0-test1-ac8/ipv4/{ipt_MASQUERADE,iptable_nat,ip_tables,ip_conntrack}.o
/lib/modules/2.4.0-test1-ac8/ipv4/ipt_MASQUERADE.o:
/lib/modules/2.4.0-test1-ac8/ipv4/iptable_nat.o
/lib/modules/2.4.0-test1-ac8/ipv4/ip_conntrack.o
/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o

/lib/modules/2.4.0-test1-ac8/ipv4/iptable_nat.o:
/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o
/lib/modules/2.4.0-test1-ac8/ipv4/ip_conntrack.o

/lib/modules/2.4.0-test1-ac8/ipv4/ip_tables.o:

/lib/modules/2.4.0-test1-ac8/ipv4/ip_conntrack.o:

router|00:00:54|/usr/src/linux> uname -a
Linux router 2.4.0-test1-ac8 #4 Mon Jun 5 09:52:27 CEST 2000 i586
unknown

If you need more infos, I'll provide.

Xuân. :o)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:23 EST