Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 4,803 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void | void | ||||
if_setdebugnet_methods(if_t ifp, struct debugnet_methods *m) | if_setdebugnet_methods(if_t ifp, struct debugnet_methods *m) | ||||
{ | { | ||||
ifp->if_debugnet_methods = m; | ifp->if_debugnet_methods = m; | ||||
} | } | ||||
struct label * | |||||
if_getmaclabel(if_t ifp) | |||||
{ | |||||
return (ifp->if_label); | |||||
} | |||||
void | |||||
if_setmaclabel(if_t ifp, struct label *label) | |||||
{ | |||||
ifp->if_label = label; | |||||
} | |||||
int | int | ||||
if_gettype(if_t ifp) | if_gettype(if_t ifp) | ||||
{ | { | ||||
return (ifp->if_type); | return (ifp->if_type); | ||||
} | } | ||||
#ifdef DDB | #ifdef DDB | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |