Lines Matching refs:rth
119 if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { in flush_update()
323 fn->nlmsg_seq = ++rth.seq; in print_route()
970 ll_init_map(&rth); in iproute_modify()
1017 if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) in iproute_modify()
1023 static int rtnl_rtcache_request(struct rtnl_handle *rth, int family) in rtnl_rtcache_request() argument
1039 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in rtnl_rtcache_request()
1043 return sendto(rth->fd, (void*)&req, sizeof(req), 0, (struct sockaddr*)&nladdr, sizeof(nladdr)); in rtnl_rtcache_request()
1246 ll_init_map(&rth); in iproute_list_flush_or_save()
1290 if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { in iproute_list_flush_or_save()
1295 if (rtnl_dump_filter(&rth, filter_fn, stdout) < 0) { in iproute_list_flush_or_save()
1327 if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { in iproute_list_flush_or_save()
1332 if (rtnl_rtcache_request(&rth, do_ipv6) < 0) { in iproute_list_flush_or_save()
1338 if (rtnl_dump_filter(&rth, filter_fn, stdout) < 0) { in iproute_list_flush_or_save()
1438 ll_init_map(&rth); in iproute_get()
1464 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n) < 0) in iproute_get()
1505 if (rtnl_talk(&rth, &req.n, 0, 0, &req.n) < 0) in iproute_get()
1523 ll_init_map(&rth); in restore_handler()
1525 ret = rtnl_talk(&rth, n, 0, 0, n); in restore_handler()