Lines Matching refs:rtnl

46 static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) {  in manager_process_link()  argument
52 assert(rtnl); in manager_process_link()
108 static int manager_process_address(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) { in manager_process_address() argument
116 assert(rtnl); in manager_process_address()
200 r = sd_netlink_open(&m->rtnl); in manager_rtnl_listen()
204 r = sd_netlink_attach_event(m->rtnl, m->event, SD_EVENT_PRIORITY_IMPORTANT); in manager_rtnl_listen()
208 …r = sd_netlink_add_match(m->rtnl, NULL, RTM_NEWLINK, manager_process_link, NULL, m, "resolve-NEWLI… in manager_rtnl_listen()
212 …r = sd_netlink_add_match(m->rtnl, NULL, RTM_DELLINK, manager_process_link, NULL, m, "resolve-DELLI… in manager_rtnl_listen()
216 …r = sd_netlink_add_match(m->rtnl, NULL, RTM_NEWADDR, manager_process_address, NULL, m, "resolve-NE… in manager_rtnl_listen()
220 …r = sd_netlink_add_match(m->rtnl, NULL, RTM_DELADDR, manager_process_address, NULL, m, "resolve-DE… in manager_rtnl_listen()
225 r = sd_rtnl_message_new_link(m->rtnl, &req, RTM_GETLINK, 0); in manager_rtnl_listen()
233 r = sd_netlink_call(m->rtnl, req, 0, &reply); in manager_rtnl_listen()
238 r = manager_process_link(m->rtnl, i, m); in manager_rtnl_listen()
247 r = sd_rtnl_message_new_addr(m->rtnl, &req, RTM_GETADDR, 0, AF_UNSPEC); in manager_rtnl_listen()
255 r = sd_netlink_call(m->rtnl, req, 0, &reply); in manager_rtnl_listen()
260 r = manager_process_address(m->rtnl, i, m); in manager_rtnl_listen()
703 sd_netlink_unref(m->rtnl); in manager_free()