don't bother to ping loopback
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 09:55:31 +0000 (01:55 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 09:55:31 +0000 (01:55 -0800)
SCCS-vsn: sbin/routed/startup.c 5.10

usr/src/sbin/routed/startup.c

index 61c1426..8f1f1f1 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)startup.c  5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)startup.c  5.10 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -213,7 +213,7 @@ addrouteforif(ifp)
            ifp->int_netmask) != ifp->int_net)
                state &= ~RTS_SUBNET;
        if (ifp->int_flags & IFF_LOOPBACK)
            ifp->int_netmask) != ifp->int_net)
                state &= ~RTS_SUBNET;
        if (ifp->int_flags & IFF_LOOPBACK)
-               state |= RTS_EXTERNAL;
+               state |= RTS_EXTERNAL | RTS_PASSIVE;
        rtadd(dst, &ifp->int_addr, ifp->int_metric, state);
        if (ifp->int_flags & IFF_POINTOPOINT && foundloopback)
                add_ptopt_localrt(ifp);
        rtadd(dst, &ifp->int_addr, ifp->int_metric, state);
        if (ifp->int_flags & IFF_POINTOPOINT && foundloopback)
                add_ptopt_localrt(ifp);