patch-2.1.91 linux/net/ipv4/ip_fw.c
Next file: linux/net/ipv4/ip_masq.c
Previous file: linux/net/ipv4/ip_fragment.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Mar 23 16:48:25 1998
- Orig file:
v2.1.90/linux/net/ipv4/ip_fw.c
- Orig date:
Tue Mar 17 22:18:16 1998
diff -u --recursive --new-file v2.1.90/linux/net/ipv4/ip_fw.c linux/net/ipv4/ip_fw.c
@@ -6,7 +6,7 @@
* license in recognition of the original copyright.
* -- Alan Cox.
*
- * $Id: ip_fw.c,v 1.33 1998/03/15 03:31:43 davem Exp $
+ * $Id: ip_fw.c,v 1.34 1998/03/20 09:12:06 davem Exp $
*
* Ported from BSD to Linux,
* Alan Cox 22/Nov/1994.
@@ -683,11 +683,6 @@
if ((ftmp->fw_vianame)[0]) {
if (!(ftmp->fw_viadev = dev_get(ftmp->fw_vianame)))
ftmp->fw_viadev = (struct device *) -1;
- } else if (ftmp->fw_via.s_addr) {
- if (!(ftmp->fw_viadev = ip_dev_find(ftmp->fw_via.s_addr)))
- ftmp->fw_viadev = (struct device *) -1;
- else
- memcpy(ftmp->fw_vianame, ftmp->fw_viadev->name, IFNAMSIZ);
} else
ftmp->fw_viadev = NULL;
@@ -732,11 +727,6 @@
if ((ftmp->fw_vianame)[0]) {
if (!(ftmp->fw_viadev = dev_get(ftmp->fw_vianame)))
ftmp->fw_viadev = (struct device *) -1;
- } else if (ftmp->fw_via.s_addr) {
- if (!(ftmp->fw_viadev = ip_dev_find(ftmp->fw_via.s_addr)))
- ftmp->fw_viadev = (struct device *) -1;
- else
- memcpy(ftmp->fw_vianame, ftmp->fw_viadev->name, IFNAMSIZ);
} else
ftmp->fw_viadev = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov