Patch for 2.1.73: IP Firewall/IP masquerading related crash

Gordon Chaffee (chaffee@quimby.cs.berkeley.edu)
Fri, 19 Dec 1997 01:49:31 -0800 (PST)


IP Firewalling is a wee bit broken in 2.1.73. Because of it, I was
not able to boot 2.1.73 past single user mode. The following patch
fixes the problem and allows things to work again.

- Gordon

--- linux-2.1.73-clean/net/ipv4/ip_fw.c Tue Dec 2 23:40:17 1997
+++ linux/net/ipv4/ip_fw.c Fri Dec 19 01:15:23 1997
@@ -152,9 +152,12 @@
struct ip_fw *ip_fw_in_chain;
struct ip_fw *ip_fw_out_chain;
struct ip_fw *ip_acct_chain;
+struct ip_fw *ip_masq_chain;

static struct ip_fw **chains[] =
- {&ip_fw_fwd_chain, &ip_fw_in_chain, &ip_fw_out_chain, &ip_acct_chain};
+ {&ip_fw_fwd_chain, &ip_fw_in_chain, &ip_fw_out_chain, &ip_acct_chain,
+ &ip_masq_chain
+ };
#endif /* CONFIG_IP_ACCT || CONFIG_IP_FIREWALL */

#ifdef CONFIG_IP_FIREWALL