diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 2000-07-13 22:54:34 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 2000-07-13 22:54:34 +0000 |
| commit | 21b8ebd926583116aa2cfe13371539035c4c8249 (patch) | |
| tree | 9138788c579d4f5d51cd1a679899f325a789cb7e /sys/dev/lnc | |
| parent | 4a19005c4897cb2bddd9f1d0a184e503c15e23bf (diff) | |
Notes
Diffstat (limited to 'sys/dev/lnc')
| -rw-r--r-- | sys/dev/lnc/if_lnc.c | 9 | ||||
| -rw-r--r-- | sys/dev/lnc/if_lnc_isa.c | 4 |
2 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index d1c6e686f17b..f56a56d7f104 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -895,12 +895,7 @@ lnc_attach_sc(lnc_softc_t *sc, int unit) sc->arpcom.ac_if.if_hdrlen = ETHER_HDR_LEN; sc->arpcom.ac_if.if_snd.ifq_maxlen = IFQ_MAXLEN; - /* - * XXX -- should check return status of if_attach - */ - - if_attach(&sc->arpcom.ac_if); - ether_ifattach(&sc->arpcom.ac_if); + ether_ifattach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED); printf("lnc%d: ", unit); if (sc->nic.ic == LANCE || sc->nic.ic == C_LANCE) @@ -910,8 +905,6 @@ lnc_attach_sc(lnc_softc_t *sc, int unit) printf("%s", ic_ident[sc->nic.ic]); printf(" address %6D\n", sc->arpcom.ac_enaddr, ":"); - bpfattach(&sc->arpcom.ac_if, DLT_EN10MB, sizeof(struct ether_header)); - return (1); } diff --git a/sys/dev/lnc/if_lnc_isa.c b/sys/dev/lnc/if_lnc_isa.c index fe980270fb58..ce501b5714de 100644 --- a/sys/dev/lnc/if_lnc_isa.c +++ b/sys/dev/lnc/if_lnc_isa.c @@ -315,8 +315,8 @@ lnc_attach(struct isa_device * isa_dev) #ifndef PC98 /* - * XXX - is it safe to call isa_dmacascade() after if_attach() - * and ether_ifattach() have been called in lnc_attach() ??? + * XXX - is it safe to call isa_dmacascade() after + * ether_ifattach() has been called in lnc_attach() ??? */ if ((sc->nic.mem_mode != SHMEM) && (sc->nic.ic < PCnet_32)) |
