Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ifdi_if.m
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | default_mac_set(if_ctx_t ctx, const uint8_t *mac) | ||||
if (ifp && ifp->if_addr) { | if (ifp && ifp->if_addr) { | ||||
sdl = (struct sockaddr_dl *)ifp->if_addr->ifa_addr; | sdl = (struct sockaddr_dl *)ifp->if_addr->ifa_addr; | ||||
MPASS(sdl->sdl_type == IFT_ETHER); | MPASS(sdl->sdl_type == IFT_ETHER); | ||||
memcpy(LLADDR(sdl), mac, ETHER_ADDR_LEN); | memcpy(LLADDR(sdl), mac, ETHER_ADDR_LEN); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static bool | |||||
null_needs_restart(if_ctx_t _ctx __unused, enum iflib_restart_event _event __unused) | |||||
{ | |||||
return (true); | |||||
} | |||||
}; | }; | ||||
# | # | ||||
# kevent interfaces | # kevent interfaces | ||||
# | # | ||||
METHOD int knlist_add { | METHOD int knlist_add { | ||||
if_ctx_t _ctx; | if_ctx_t _ctx; | ||||
▲ Show 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | |||||
METHOD int sysctl_int_delay { | METHOD int sysctl_int_delay { | ||||
if_ctx_t _sctx; | if_ctx_t _sctx; | ||||
if_int_delay_info_t _iidi; | if_int_delay_info_t _iidi; | ||||
} DEFAULT null_sysctl_int_delay; | } DEFAULT null_sysctl_int_delay; | ||||
METHOD void debug { | METHOD void debug { | ||||
if_ctx_t _ctx; | if_ctx_t _ctx; | ||||
} DEFAULT null_void_op; | } DEFAULT null_void_op; | ||||
METHOD bool needs_restart { | |||||
if_ctx_t _ctx; | |||||
enum iflib_restart_event _event; | |||||
} DEFAULT null_needs_restart; |