Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_stf.c
Show First 20 Lines • Show All 421 Lines • ▼ Show 20 Lines | #ifdef MAC | ||||
error = mac_ifnet_check_transmit(ifp, m); | error = mac_ifnet_check_transmit(ifp, m); | ||||
if (error) { | if (error) { | ||||
m_freem(m); | m_freem(m); | ||||
return (error); | return (error); | ||||
} | } | ||||
#endif | #endif | ||||
sc = ifp->if_softc; | sc = ifp->if_softc; | ||||
/* FIXME possible sockaddr_in gw ? */ | |||||
dst6 = (const struct sockaddr_in6 *)dst; | dst6 = (const struct sockaddr_in6 *)dst; | ||||
/* just in case */ | /* just in case */ | ||||
if ((ifp->if_flags & IFF_UP) == 0) { | if ((ifp->if_flags & IFF_UP) == 0) { | ||||
m_freem(m); | m_freem(m); | ||||
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); | if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); | ||||
return ENETDOWN; | return ENETDOWN; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |