patch-2.0.31 linux/net/ipv4/ip_masq_app.c
Next file: linux/net/ipv4/ip_masq_cuseeme.c
Previous file: linux/net/ipv4/ip_masq.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Aug 12 11:30:33 1997
- Orig file:
v2.0.30/linux/net/ipv4/ip_masq_app.c
- Orig date:
Fri Jun 28 08:49:55 1996
diff -u --recursive --new-file v2.0.30/linux/net/ipv4/ip_masq_app.c linux/net/ipv4/ip_masq_app.c
@@ -15,6 +15,7 @@
* Fixes:
* JJC : Implemented also input pkt hook
* Miquel van Smoorenburg : Copy more stuff when resizing skb
+ * Harald Hoyer/James R. Leu: Additional ipautofw support
*
*
* FIXME:
@@ -186,7 +187,11 @@
struct ip_masq_app * ip_masq_bind_app(struct ip_masq *ms)
{
struct ip_masq_app * mapp;
- mapp = ip_masq_app_get(ms->protocol, ms->dport);
+ mapp = ip_masq_app_get(ms->protocol, ms->dport);
+#ifdef CONFIG_IP_MASQUERADE_IPAUTOFW
+ if (mapp == NULL)
+ mapp = ip_masq_app_get(ms->protocol, ms->sport);
+#endif
if (mapp != NULL) {
/*
* don't allow binding if already bound
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov