Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
| Show First 20 Lines • Show All 4,815 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void | void | ||||
| if_setmaclabel(if_t ifp, struct label *label) | if_setmaclabel(if_t ifp, struct label *label) | ||||
| { | { | ||||
| ifp->if_label = label; | ifp->if_label = label; | ||||
| } | } | ||||
| void * | |||||
| if_getllsoftc(if_t ifp) | |||||
| { | |||||
| return (ifp->if_llsoftc); | |||||
| } | |||||
| int | |||||
glebius: What is the reason to make it non-void? | |||||
jhibbitsAuthorUnsubmitted Done Inline ActionsIt was for consistency with other setters, but I guess that's not consistent either. I'll just make it void. jhibbits: It was for consistency with other setters, but I guess that's not consistent either. I'll just… | |||||
| if_setllsoftc(if_t ifp, void *llsoftc) | |||||
| { | |||||
| ifp->if_llsoftc = llsoftc; | |||||
| return (0); | |||||
| }; | |||||
| #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 | |||||
What is the reason to make it non-void?