Lines Matching refs:rth

36 	struct rtnl_handle *rth;  member
59 if (rtnl_send_check(G_filter.rth, G_filter.flushb, G_filter.flushp) < 0) { in flush_update()
223 fn->nlmsg_seq = ++G_filter.rth->seq; in print_route()
380 struct rtnl_handle rth; in iproute_modify() local
674 xrtnl_open(&rth);
679 ll_init_map(&rth);
716 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) {
723 static int rtnl_rtcache_request(struct rtnl_handle *rth, int family) in rtnl_rtcache_request() argument
741 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in rtnl_rtcache_request()
746 return xsendto(rth->fd, (void*)&req, sizeof(req), (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()
776 struct rtnl_handle rth; in iproute_list_or_flush() local
906 xrtnl_open(&rth); in iproute_list_or_flush()
907 ll_init_map(&rth); in iproute_list_or_flush()
935 G_filter.rth = &rth; in iproute_list_or_flush()
938 xrtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE); in iproute_list_or_flush()
940 xrtnl_dump_filter(&rth, print_route, NULL); in iproute_list_or_flush()
949 xrtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE); in iproute_list_or_flush()
950 } else if (rtnl_rtcache_request(&rth, do_ipv6) < 0) { in iproute_list_or_flush()
953 xrtnl_dump_filter(&rth, print_route, NULL); in iproute_list_or_flush()
962 struct rtnl_handle rth; in iproute_get() local
1047 xrtnl_open(&rth); in iproute_get()
1049 ll_init_map(&rth); in iproute_get()
1068 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0) { in iproute_get()
1108 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n, NULL, NULL) < 0) { in iproute_get()