Lines Matching defs:rtnl

199         _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
205 r = sd_netlink_open(&rtnl);
209 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0);
217 r = sd_netlink_call(rtnl, req, 0, &reply);
294 sd_netlink *rtnl,
304 assert(rtnl);
310 r = sd_rtnl_message_new_neigh(rtnl, &req, RTM_GETNEIGH, ifindex, family);
318 r = sd_netlink_call(rtnl, req, 0, &reply);
400 sd_netlink *rtnl,
407 n = local_gateways(rtnl, ifindex, AF_UNSPEC, &local);
418 r = get_gateway_description(rtnl, hwdb, local[i].ifindex, local[i].family, &local[i].address, &description);
449 sd_netlink *rtnl,
456 n = local_addresses(rtnl, ifindex, AF_UNSPEC, &local);
503 sd_netlink *rtnl,
523 assert(rtnl);
527 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, ifindex);
529 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0);
539 r = sd_netlink_call(rtnl, req, 0, &reply);
644 dump_addresses(rtnl, " Address: ", ifindex);
645 dump_gateways(rtnl, hwdb, " Gateway: ", ifindex);
665 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
669 r = sd_netlink_open(&rtnl);
689 dump_addresses(rtnl, " Address: ", 0);
690 dump_gateways(rtnl, hwdb, " Gateway: ", 0);
714 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0);
722 r = sd_netlink_call(rtnl, req, 0, &reply);
734 link_status_one(rtnl, hwdb, links[i].name);
741 link_status_one(rtnl, hwdb, *name);
897 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
907 r = sd_netlink_open(&rtnl);
911 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0);
919 r = sd_netlink_call(rtnl, req, 0, &reply);