Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 4,616 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
if_vlantrunkinuse(if_t ifp) | if_vlantrunkinuse(if_t ifp) | ||||
{ | { | ||||
return ((struct ifnet *)ifp)->if_vlantrunk != NULL?1:0; | return ((struct ifnet *)ifp)->if_vlantrunk != NULL?1:0; | ||||
} | } | ||||
int | int | ||||
if_init(if_t ifp) | if_init(if_t ifp, void *ctx) | ||||
{ | { | ||||
(*((struct ifnet *)ifp)->if_init)((struct ifnet *)ifp); | (*((struct ifnet *)ifp)->if_init)(ctx); | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
if_input(if_t ifp, struct mbuf* sendmp) | if_input(if_t ifp, struct mbuf* sendmp) | ||||
{ | { | ||||
(*((struct ifnet *)ifp)->if_input)((struct ifnet *)ifp, sendmp); | (*((struct ifnet *)ifp)->if_input)((struct ifnet *)ifp, sendmp); | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |