diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-22 20:44:16 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-22 20:44:16 +0000 |
commit | 82edd7c36328fd70dad3a7c7b7e7f8de433ce40b (patch) | |
tree | 030f8624da95ac414a5ac02234a0edb0d41dcdd7 | |
parent | b69a01f7fa17e5a12ea96e92f6b20999f3383222 (diff) | |
download | FreeBSD-src-82edd7c36328fd70dad3a7c7b7e7f8de433ce40b.zip FreeBSD-src-82edd7c36328fd70dad3a7c7b7e7f8de433ce40b.tar.gz |
Remove __FreeBSD_version ifdefs.
-rw-r--r-- | sys/net/if_arcsubr.c | 4 | ||||
-rw-r--r-- | sys/net/if_lagg.c | 6 | ||||
-rw-r--r-- | sys/net/if_lagg.h | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index faa37cf..0371df7 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -638,11 +638,7 @@ arc_ifattach(struct ifnet *ifp, u_int8_t lla) ifp->if_resolvemulti = arc_resolvemulti; if (ifp->if_baudrate == 0) ifp->if_baudrate = 2500000; -#if __FreeBSD_version < 500000 - ifa = ifnet_addrs[ifp->if_index - 1]; -#else ifa = ifp->if_addr; -#endif KASSERT(ifa != NULL, ("%s: no lladdr!\n", __func__)); sdl = (struct sockaddr_dl *)ifa->ifa_addr; sdl->sdl_type = IFT_ARCNET; diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 3634d0b..16f9429 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -219,7 +219,6 @@ static moduledata_t lagg_mod = { DECLARE_MODULE(if_lagg, lagg_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); MODULE_VERSION(if_lagg, 1); -#if __FreeBSD_version >= 800000 /* * This routine is run via an vlan * config EVENT @@ -261,7 +260,6 @@ lagg_unregister_vlan(void *arg, struct ifnet *ifp, u_int16_t vtag) } LAGG_RUNLOCK(sc); } -#endif static int lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) @@ -330,12 +328,10 @@ lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) */ ether_ifattach(ifp, eaddr); -#if __FreeBSD_version >= 800000 sc->vlan_attach = EVENTHANDLER_REGISTER(vlan_config, lagg_register_vlan, sc, EVENTHANDLER_PRI_FIRST); sc->vlan_detach = EVENTHANDLER_REGISTER(vlan_unconfig, lagg_unregister_vlan, sc, EVENTHANDLER_PRI_FIRST); -#endif /* Insert into the global list of laggs */ mtx_lock(&lagg_list_mtx); @@ -356,10 +352,8 @@ lagg_clone_destroy(struct ifnet *ifp) lagg_stop(sc); ifp->if_flags &= ~IFF_UP; -#if __FreeBSD_version >= 800000 EVENTHANDLER_DEREGISTER(vlan_config, sc->vlan_attach); EVENTHANDLER_DEREGISTER(vlan_unconfig, sc->vlan_detach); -#endif /* Shutdown and remove lagg ports */ while ((lp = SLIST_FIRST(&sc->sc_ports)) != NULL) diff --git a/sys/net/if_lagg.h b/sys/net/if_lagg.h index 27ab46f..573a1d6 100644 --- a/sys/net/if_lagg.h +++ b/sys/net/if_lagg.h @@ -215,10 +215,8 @@ struct lagg_softc { void (*sc_lladdr)(struct lagg_softc *); void (*sc_req)(struct lagg_softc *, caddr_t); void (*sc_portreq)(struct lagg_port *, caddr_t); -#if __FreeBSD_version >= 800000 eventhandler_tag vlan_attach; eventhandler_tag vlan_detach; -#endif struct sysctl_ctx_list ctx; /* sysctl variables */ int use_flowid; /* use M_FLOWID */ }; |