lance.c (6cec9cad762b6476313fb1f8e931a1647822db6b) lance.c (1bffa9511fe94125820858b0ead796db54ac019d)
1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace

--- 182 unchanged lines hidden (view full) ---

191lance_attach(struct lance_softc *sc)
192{
193 struct ifnet *ifp = sc->sc_ifp;
194
195 /* Attach the interface. */
196 ether_ifattach(ifp, sc->sc_enaddr);
197
198 /* Claim 802.1q capability. */
1/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */
2
3/*-
4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace

--- 182 unchanged lines hidden (view full) ---

191lance_attach(struct lance_softc *sc)
192{
193 struct ifnet *ifp = sc->sc_ifp;
194
195 /* Attach the interface. */
196 ether_ifattach(ifp, sc->sc_enaddr);
197
198 /* Claim 802.1q capability. */
199 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
199 ifp->if_hdrlen = sizeof(struct ether_vlan_header);
200 ifp->if_capabilities |= IFCAP_VLAN_MTU;
201 ifp->if_capenable |= IFCAP_VLAN_MTU;
202}
203
204void
205lance_detach(struct lance_softc *sc)
206{
207 struct ifnet *ifp = sc->sc_ifp;

--- 610 unchanged lines hidden ---
200 ifp->if_capabilities |= IFCAP_VLAN_MTU;
201 ifp->if_capenable |= IFCAP_VLAN_MTU;
202}
203
204void
205lance_detach(struct lance_softc *sc)
206{
207 struct ifnet *ifp = sc->sc_ifp;

--- 610 unchanged lines hidden ---