Home
last modified time | relevance | path

Searched refs:grth (Results 1 – 4 of 4) sorted by relevance

/external/iproute2/ip/
Dipseg6.c43 static struct rtnl_handle grth = { .fd = -1 }; variable
131 if (rtnl_open_byproto(&grth, 0, NETLINK_GENERIC) < 0) { in seg6_do_cmd()
135 genl_family = genl_resolve_family(&grth, SEG6_GENL_NAME); in seg6_do_cmd()
166 if (rtnl_talk(&grth, &req.n, NULL, 0) < 0) in seg6_do_cmd()
169 if (rtnl_talk(&grth, &req.n, &req.n, sizeof(req)) < 0) in seg6_do_cmd()
177 req.n.nlmsg_seq = grth.dump = ++grth.seq; in seg6_do_cmd()
178 if (rtnl_send(&grth, &req, req.n.nlmsg_len) < 0) { in seg6_do_cmd()
183 if (rtnl_dump_filter(&grth, process_msg, stdout) < 0) { in seg6_do_cmd()
Dtcp_metrics.c39 static struct rtnl_handle grth = { .fd = -1 }; variable
83 if (rtnl_send_check(&grth, f.flushb, f.flushp) < 0) { in flush_update()
182 fn->nlmsg_seq = ++grth.seq; in process_msg()
401 if (genl_init_handle(&grth, TCP_METRICS_GENL_NAME, &genl_family)) in tcpm_do_cmd()
428 req.n.nlmsg_seq = grth.dump = ++grth.seq; in tcpm_do_cmd()
429 if (rtnl_send(&grth, &req, req.n.nlmsg_len) < 0) { in tcpm_do_cmd()
434 if (rtnl_dump_filter(&grth, process_msg, stdout) < 0) { in tcpm_do_cmd()
460 if (rtnl_talk(&grth, &req.n, NULL, 0) < 0) in tcpm_do_cmd()
463 if (rtnl_talk(&grth, &req.n, &req.n, sizeof(req)) < 0) in tcpm_do_cmd()
470 req.n.nlmsg_seq = grth.dump = ++grth.seq; in tcpm_do_cmd()
[all …]
/external/iproute2/lib/
Dlibgenl.c48 int genl_resolve_family(struct rtnl_handle *grth, const char *family) in genl_resolve_family() argument
56 if (rtnl_talk(grth, &req.n, &req.n, sizeof(req)) < 0) { in genl_resolve_family()
64 int genl_init_handle(struct rtnl_handle *grth, const char *family, in genl_init_handle() argument
70 if (rtnl_open_byproto(grth, 0, NETLINK_GENERIC) < 0) { in genl_init_handle()
75 *genl_family = genl_resolve_family(grth, family); in genl_init_handle()
/external/iproute2/include/
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,