From 227c27096f71d7893da05a63c5d5207084b51214 Mon Sep 17 00:00:00 2001 From: augustss Date: Sun, 21 Jan 2001 02:22:27 +0000 Subject: [PATCH] Add some initialization to struct ifnet that seems to have become necessary. --- sys/dev/usb/if_upl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c index e0c892e84034..e23bfbf6c58d 100644 --- a/sys/dev/usb/if_upl.c +++ b/sys/dev/usb/if_upl.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_upl.c,v 1.11 2000/12/12 18:00:25 thorpej Exp $ */ +/* $NetBSD: if_upl.c,v 1.12 2001/01/21 02:22:27 augustss Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. @@ -313,12 +313,15 @@ USB_ATTACH(upl) ifp->if_output = upl_output; ifp->if_input = upl_input; ifp->if_baudrate = 12000000; + ifp->if_dlt = DLT_RAW; + IFQ_SET_READY(ifp->if_snd); /* Attach the interface. */ if_attach(ifp); + if_alloc_sadl(ifp); #if NBPFILTER > 0 - bpfattach(ifp, DLT_EN10MB, 0); + bpfattach(ifp, DLT_RAW, 0); #endif #if NRND > 0 rnd_attach_source(&sc->sc_rnd_source, USBDEVNAME(sc->sc_dev),