Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
Show First 20 Lines • Show All 676 Lines • ▼ Show 20 Lines | |||||
int if_getamcount(const if_t ifp); | int if_getamcount(const if_t ifp); | ||||
struct ifaddr * if_getifaddr(const if_t ifp); | struct ifaddr * if_getifaddr(const if_t ifp); | ||||
typedef u_int if_addr_cb_t(void *, struct ifaddr *, u_int); | typedef u_int if_addr_cb_t(void *, struct ifaddr *, u_int); | ||||
u_int if_foreach_addr_type(if_t ifp, int type, if_addr_cb_t cb, void *cb_arg); | u_int if_foreach_addr_type(if_t ifp, int type, if_addr_cb_t cb, void *cb_arg); | ||||
typedef int (*if_foreach_cb_t)(if_t, void *); | typedef int (*if_foreach_cb_t)(if_t, void *); | ||||
typedef bool (*if_foreach_match_t)(if_t, void *); | typedef bool (*if_foreach_match_t)(if_t, void *); | ||||
int if_foreach(if_foreach_cb_t, void *); | int if_foreach(if_foreach_cb_t, void *); | ||||
int if_foreach_sleep(if_foreach_match_t, void *, if_foreach_cb_t, void *); | |||||
/* Opaque iterator structure for iterating over interfaces. */ | /* Opaque iterator structure for iterating over interfaces. */ | ||||
struct if_iter { | struct if_iter { | ||||
void *context[4]; | void *context[4]; | ||||
}; | }; | ||||
struct if_iter_ext_params { | struct if_iter_ext_params { | ||||
if_foreach_match_t match_cb; | if_foreach_match_t match_cb; | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |