diff options
| -rw-r--r-- | sys/net/if.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 18944844f321..28e1f15a8b70 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if.c 8.3 (Berkeley) 1/4/94 - * $Id: if.c,v 1.26 1996/01/24 21:08:54 phk Exp $ + * $Id: if.c,v 1.27 1996/02/06 18:51:09 wollman Exp $ */ #include <sys/param.h> @@ -160,6 +160,18 @@ if_attach(ifp) while (namelen != 0) sdl->sdl_data[--namelen] = 0xff; } + /* + * If they provided a slow input queue, initialize it. + */ + if (ifp->if_poll_slowq) { + struct ifqueue *ifq = ifp->if_poll_slowq; + + bzero(ifq, sizeof *ifq); + ifq->ifq_maxlen = ifqmaxlen; +#ifdef POLLING + ifq->if_poll_recv = if_poll_recv_slow; +#endif + } } /* * Locate an interface based on a complete address. |
