patch-2.2.0-pre5 linux/net/ipv4/fib_frontend.c
Next file: linux/net/ipv4/icmp.c
Previous file: linux/net/ipv4/devinet.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Jan 4 15:31:35 1999
- Orig file:
v2.2.0-pre4/linux/net/ipv4/fib_frontend.c
- Orig date:
Thu Dec 31 10:29:03 1998
diff -u --recursive --new-file v2.2.0-pre4/linux/net/ipv4/fib_frontend.c linux/net/ipv4/fib_frontend.c
@@ -5,7 +5,7 @@
*
* IPv4 Forwarding Information Base: FIB frontend.
*
- * Version: $Id: fib_frontend.c,v 1.12 1998/08/26 12:03:24 davem Exp $
+ * Version: $Id: fib_frontend.c,v 1.14 1999/01/04 20:13:55 davem Exp $
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*
@@ -443,13 +443,13 @@
if (ifa->ifa_broadcast && ifa->ifa_broadcast != 0xFFFFFFFF)
fib_magic(RTM_NEWROUTE, RTN_BROADCAST, ifa->ifa_broadcast, 32, prim);
- if (!(ifa->ifa_flags&IFA_F_SECONDARY) &&
+ if (!ZERONET(prefix) && !(ifa->ifa_flags&IFA_F_SECONDARY) &&
(prefix != addr || ifa->ifa_prefixlen < 32)) {
fib_magic(RTM_NEWROUTE, dev->flags&IFF_LOOPBACK ? RTN_LOCAL :
RTN_UNICAST, prefix, ifa->ifa_prefixlen, prim);
/* Add network specific broadcasts, when it takes a sense */
- if (!ZERONET(prefix) && ifa->ifa_prefixlen < 31) {
+ if (ifa->ifa_prefixlen < 31) {
fib_magic(RTM_NEWROUTE, RTN_BROADCAST, prefix, 32, prim);
fib_magic(RTM_NEWROUTE, RTN_BROADCAST, prefix|~mask, 32, prim);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov