Lines Matching defs:rtnl
25 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name) {
29 assert(rtnl);
33 if (!*rtnl) {
34 r = sd_netlink_open(rtnl);
39 r = sd_rtnl_message_new_link(*rtnl, &message, RTM_SETLINK, ifindex);
47 r = sd_netlink_call(*rtnl, message, 0, NULL);
54 int rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias,
59 assert(rtnl);
65 if (!*rtnl) {
66 r = sd_netlink_open(rtnl);
71 r = sd_rtnl_message_new_link(*rtnl, &message, RTM_SETLINK, ifindex);
93 r = sd_netlink_call(*rtnl, message, 0, NULL);