Home
last modified time | relevance | path

Searched refs:rtnl_handle (Results 1 – 25 of 37) sorted by relevance

12

/external/libnfnetlink/src/
Drtnl.c33 find_handler(struct rtnl_handle *rtnl_handle, u_int16_t type) in find_handler() argument
36 for (h = rtnl_handle->handlers; h; h = h->next) { in find_handler()
43 static int call_handler(struct rtnl_handle *rtnl_handle, in call_handler() argument
47 struct rtnl_handler *h = find_handler(rtnl_handle, type); in call_handler()
60 int rtnl_handler_register(struct rtnl_handle *rtnl_handle, in rtnl_handler_register() argument
65 hdlr->next = rtnl_handle->handlers; in rtnl_handler_register()
66 rtnl_handle->handlers = hdlr; in rtnl_handler_register()
73 int rtnl_handler_unregister(struct rtnl_handle *rtnl_handle, in rtnl_handler_unregister() argument
81 for (h = rtnl_handle->handlers; h; h = h->next) { in rtnl_handler_unregister()
86 rtnl_handle->handlers = h->next; in rtnl_handler_unregister()
[all …]
Drtnl.h15 struct rtnl_handle { struct
24 int rtnl_handler_register(struct rtnl_handle *rtnl_handle, argument
26 int rtnl_handler_unregister(struct rtnl_handle *rtnl_handle,
29 int rtnl_dump_type(struct rtnl_handle *rtnl_handle, unsigned int type);
32 struct rtnl_handle *rtnl_open(void);
33 void rtnl_close(struct rtnl_handle *rtnl_handle);
34 int rtnl_receive(struct rtnl_handle *rtnl_handle);
35 int rtnl_receive_multi(struct rtnl_handle *rtnl_handle);
Diftable.c40 struct rtnl_handle *rtnl_handle; member
235 h->rtnl_handle = rtnl_open(); in nlif_open()
236 if (h->rtnl_handle == NULL) in nlif_open()
239 if (rtnl_handler_register(h->rtnl_handle, &h->ifadd_handler) < 0) in nlif_open()
242 if (rtnl_handler_register(h->rtnl_handle, &h->ifdel_handler) < 0) in nlif_open()
248 rtnl_handler_unregister(h->rtnl_handle, &h->ifadd_handler); in nlif_open()
250 rtnl_close(h->rtnl_handle); in nlif_open()
268 rtnl_handler_unregister(h->rtnl_handle, &h->ifadd_handler); in nlif_close()
269 rtnl_handler_unregister(h->rtnl_handle, &h->ifdel_handler); in nlif_close()
270 rtnl_close(h->rtnl_handle); in nlif_close()
[all …]
/external/iproute2/include/
Dlibnetlink.h15 struct rtnl_handle { struct
40 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions) argument
43 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions,
47 void rtnl_close(struct rtnl_handle *rth);
48 int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type)
50 int rtnl_wilddump_req_filter(struct rtnl_handle *rth, int fam, int type,
56 int rtnl_wilddump_req_filter_fn(struct rtnl_handle *rth, int fam, int type,
59 int rtnl_wilddump_stats_req_filter(struct rtnl_handle *rth, int fam, int type,
62 int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req,
65 int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
[all …]
Dlibgenl.h23 extern int genl_resolve_family(struct rtnl_handle *grth, const char *family);
24 extern int genl_init_handle(struct rtnl_handle *grth, const char *family,
Dll_map.h7 void ll_init_map(struct rtnl_handle *rth);
/external/iproute2/lib/
Dlibnetlink.c129 void rtnl_close(struct rtnl_handle *rth) in rtnl_close()
137 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions, in rtnl_open_byproto()
197 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions) in rtnl_open()
202 int rtnl_wilddump_request(struct rtnl_handle *rth, int family, int type) in rtnl_wilddump_request()
207 int rtnl_wilddump_req_filter(struct rtnl_handle *rth, int family, int type, in rtnl_wilddump_req_filter()
230 int rtnl_wilddump_req_filter_fn(struct rtnl_handle *rth, int family, int type, in rtnl_wilddump_req_filter_fn()
256 int rtnl_wilddump_stats_req_filter(struct rtnl_handle *rth, int fam, int type, in rtnl_wilddump_stats_req_filter()
276 int rtnl_send(struct rtnl_handle *rth, const void *buf, int len) in rtnl_send()
281 int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int len) in rtnl_send_check()
315 int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) in rtnl_dump_request()
[all …]
Dlibgenl.c48 int genl_resolve_family(struct rtnl_handle *grth, const char *family) in genl_resolve_family()
64 int genl_init_handle(struct rtnl_handle *grth, const char *family, in genl_init_handle()
Dll_map.c204 void ll_init_map(struct rtnl_handle *rth) in ll_init_map()
/external/iproute2/genl/
Dctrl.c44 struct rtnl_handle rth; in genl_ctrl_resolve_family()
288 struct rtnl_handle rth; in ctrl_list()
367 struct rtnl_handle rth; in ctrl_listen()
/external/iproute2/ip/
Dipaddrlabel.c46 extern struct rtnl_handle rth;
188 struct rtnl_handle rth2; in flush_addrlabel()
Dxfrm_policy.c246 struct rtnl_handle rth; in xfrm_policy_modify()
556 struct rtnl_handle rth; in xfrm_policy_get_or_delete()
702 struct rtnl_handle *rth = xb->rth; in xfrm_policy_keep()
774 struct rtnl_handle rth; in xfrm_policy_list_or_deleteall()
1015 struct rtnl_handle rth; in xfrm_spd_setinfo()
1081 struct rtnl_handle rth; in xfrm_spd_getinfo()
1108 struct rtnl_handle rth; in xfrm_policy_flush()
Dxfrm_state.c290 struct rtnl_handle rth; in xfrm_state_modify()
748 struct rtnl_handle rth; in xfrm_state_allocspi()
1000 struct rtnl_handle rth; in xfrm_state_get_or_delete()
1087 struct rtnl_handle *rth = xb->rth; in xfrm_state_keep()
1149 struct rtnl_handle rth; in xfrm_state_list_or_deleteall()
1334 struct rtnl_handle rth; in xfrm_sad_getinfo()
1361 struct rtnl_handle rth; in xfrm_state_flush()
Dipfou.c39 static struct rtnl_handle genl_rth = { .fd = -1 };
Drtmon.c76 struct rtnl_handle rth; in main()
Diptoken.c30 extern struct rtnl_handle rth;
Dip_common.h109 extern struct rtnl_handle rth;
Dipila.c39 static struct rtnl_handle genl_rth = { .fd = -1 };
Dxfrm.h70 struct rtnl_handle *rth;
Dip.c43 struct rtnl_handle rth = { .fd = -1 };
/external/iproute2/tc/
Dtc_core.h31 extern struct rtnl_handle g_rth;
Dtc_common.h4 extern struct rtnl_handle rth;
Dtc_monitor.c74 struct rtnl_handle rth; in do_tcmonitor()
/external/iproute2/bridge/
Dbr_common.h28 extern struct rtnl_handle rth;
Dbridge.c19 struct rtnl_handle rth = { .fd = -1 };

12