if_slowtimo timeout driven
authorBill Joy <root@ucbvax.Berkeley.EDU>
Sun, 12 Sep 1982 18:22:53 +0000 (10:22 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Sun, 12 Sep 1982 18:22:53 +0000 (10:22 -0800)
SCCS-vsn: sys/net/if.c 4.19

usr/src/sys/net/if.c

index 770b043..3f85ba7 100644 (file)
@@ -1,4 +1,4 @@
-/*     if.c    4.18    82/06/23        */
+/*     if.c    4.19    82/09/12        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -29,6 +29,7 @@ ifinit()
                        if (ifp->if_snd.ifq_maxlen == 0)
                                ifp->if_snd.ifq_maxlen = ifqmaxlen;
                }
                        if (ifp->if_snd.ifq_maxlen == 0)
                                ifp->if_snd.ifq_maxlen = ifqmaxlen;
                }
+       if_slowtimo();
 }
 
 /*
 }
 
 /*
@@ -143,6 +144,7 @@ if_ifwithaf(af)
 if_down(ifp)
        register struct ifnet *ifp;
 {
 if_down(ifp)
        register struct ifnet *ifp;
 {
+
        ifp->if_flags &= ~IFF_UP;
        pfctlinput(PRC_IFDOWN, (caddr_t)&ifp->if_addr);
 }
        ifp->if_flags &= ~IFF_UP;
        pfctlinput(PRC_IFDOWN, (caddr_t)&ifp->if_addr);
 }
@@ -165,4 +167,5 @@ if_slowtimo()
                        }
                        (*ifp->if_watchdog)(ifp->if_unit);
                }
                        }
                        (*ifp->if_watchdog)(ifp->if_unit);
                }
+       timeout(if_slowtimo, 0, hz / IFNET_SLOWHZ);
 }
 }