I applied the pre5 patch (patch-2.2.0-pre5) without any problems to
a pre3 source tree which had already been successfully patched to pre4.
I am currently running pre4 without any problems.
Linux tawman 2.2.0-pre4 #2 Sun Jan 3 14:36:19 CET 1999 i686 unknown
IP_MASQ config options: $ grep MASQ .config
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=m
CONFIG_IP_MASQUERADE_IPPORTFW=m
# CONFIG_IP_MASQUERADE_MFW is not set
Compile Error:
make[3]: Entering directory `/usr/local/src/linux-2.2.0-pre3/net/ipv4'
gcc -D__KERNEL__ -I/usr/local/src/linux-2.2.0-pre3/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
-DEXPORT_SYMTAB -c ip_masq.c
ip_masq.c: In function `__ip_masq_in_get':
ip_masq.c:544: `IP_MASQ_F_DLOOSE' undeclared (first use this function)
ip_masq.c:544: (Each undeclared identifier is reported only once
ip_masq.c:544: for each function it appears in.)
ip_masq.c: In function `__ip_masq_out_get':
ip_masq.c:597: `IP_MASQ_F_DLOOSE' undeclared (first use this function)
ip_masq.c: In function `ip_masq_new':
ip_masq.c:869: `IP_MASQ_F_DLOOSE' undeclared (first use this function)
ip_masq.c: In function `ip_fw_masquerade':
ip_masq.c:1173: `IP_MASQ_F_DLOOSE' undeclared (first use this function)
ip_masq.c: In function `ip_fw_demasquerade':
ip_masq.c:1932: `IP_MASQ_F_DLOOSE' undeclared (first use this function)
make[3]: *** [ip_masq.o] Error 1
make[3]: Leaving directory `/usr/local/src/linux-2.2.0-pre3/net/ipv4'
make[2]: *** [first_rule] Error 2
I looked at patch file for the introduction of IP_MASQ_F_DLOOSE and found it
at "patch-2.2.0-pre5" line 13382 of 23878 --56%--"
+/*
+ * These flags enable non-strict d{addr,port} checks
+ * Given that both (in/out) lookup tables are hashed
+ * by m{addr,port} and s{addr,port} this is quite easy
+ */
+
+#define MASQ_DADDR_PASS (IP_MASQ_F_NO_DADDR|IP_MASQ_F_DLOOSE)
+#define MASQ_DPORT_PASS (IP_MASQ_F_NO_DPORT|IP_MASQ_F_DLOOSE)
+
+/*
+ * By default enable dest loose semantics
+ */
+#define CONFIG_IP_MASQ_LOOSE_DEFAULT 1
+
Final Note:
I do not find IP_MASQ_F_DLOOSE defined anywhere in the source tree except:
# find /usr/src/linux/ -type f -exec grep -l IP_MASQ_F_DLOOSE {} \;
/usr/src/linux/net/ipv4/ip_masq.c
Will continue to hunt on my own and search the mailing list archive. I am
quite sure that the patch author is listening and will know the answer.
Sincerely,
Todd A. Wood
(substitute Woodazy with tawood for real email address)
-
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/