Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 4,828 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
if_setllsoftc(if_t ifp, void *llsoftc) | if_setllsoftc(if_t ifp, void *llsoftc) | ||||
{ | { | ||||
ifp->if_llsoftc = llsoftc; | ifp->if_llsoftc = llsoftc; | ||||
return (0); | return (0); | ||||
}; | }; | ||||
int | |||||
if_gettype(if_t ifp) | |||||
{ | |||||
return (ifp->if_type); | |||||
} | |||||
#ifdef DDB | #ifdef DDB | ||||
static void | static void | ||||
if_show_ifnet(struct ifnet *ifp) | if_show_ifnet(struct ifnet *ifp) | ||||
{ | { | ||||
if (ifp == NULL) | if (ifp == NULL) | ||||
return; | return; | ||||
db_printf("%s:\n", ifp->if_xname); | db_printf("%s:\n", ifp->if_xname); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |