Changeset View
Changeset View
Standalone View
Standalone View
sys/net/rtsock.c
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
rtsock_init(void) | rtsock_init(void) | ||||
{ | { | ||||
rtsbridge_orig_p = rtsock_callback_p; | rtsbridge_orig_p = rtsock_callback_p; | ||||
rtsock_callback_p = &rtsbridge; | rtsock_callback_p = &rtsbridge; | ||||
} | } | ||||
SYSINIT(rtsock_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rtsock_init, NULL); | SYSINIT(rtsock_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rtsock_init); | ||||
static void | static void | ||||
rts_handle_ifnet_arrival(void *arg __unused, struct ifnet *ifp) | rts_handle_ifnet_arrival(void *arg __unused, struct ifnet *ifp) | ||||
{ | { | ||||
rt_ifannouncemsg(ifp, IFAN_ARRIVAL); | rt_ifannouncemsg(ifp, IFAN_ARRIVAL); | ||||
} | } | ||||
EVENTHANDLER_DEFINE(ifnet_arrival_event, rts_handle_ifnet_arrival, NULL, 0); | EVENTHANDLER_DEFINE(ifnet_arrival_event, rts_handle_ifnet_arrival, NULL, 0); | ||||
▲ Show 20 Lines • Show All 2,377 Lines • Show Last 20 Lines |