Lines Matching refs:osdep

73     assert(m->osdep.netlink == nl);  in netlink_callback()
288 if (m->osdep.list == LIST_IFACE) { in netlink_callback()
293 if (netlink_list_items(m->osdep.netlink, RTM_GETADDR, &m->osdep.query_addr_seq) < 0) { in netlink_callback()
295 m->osdep.list = LIST_DONE; in netlink_callback()
299 m->osdep.list = LIST_ADDR; in netlink_callback()
303 m->osdep.list = LIST_DONE; in netlink_callback()
305 if (m->osdep.list == LIST_DONE) { in netlink_callback()
325 … (n->nlmsg_seq == m->osdep.query_link_seq || n->nlmsg_seq == m->osdep.query_addr_seq)) { in netlink_callback()
341 m->osdep.netlink = NULL; in avahi_interface_monitor_init_osdep()
342 m->osdep.query_addr_seq = m->osdep.query_link_seq = 0; in avahi_interface_monitor_init_osdep()
348 …if (!(m->osdep.netlink = avahi_netlink_new(m->server->poll_api, RTMGRP_LINK|RTMGRP_IPV4_IFADDR|RTM… in avahi_interface_monitor_init_osdep()
352 m->osdep.list = LIST_IFACE; in avahi_interface_monitor_init_osdep()
355 if (netlink_list_items(m->osdep.netlink, RTM_GETLINK, &m->osdep.query_link_seq) < 0) in avahi_interface_monitor_init_osdep()
362 if (m->osdep.netlink) { in avahi_interface_monitor_init_osdep()
363 avahi_netlink_free(m->osdep.netlink); in avahi_interface_monitor_init_osdep()
364 m->osdep.netlink = NULL; in avahi_interface_monitor_init_osdep()
373 if (m->osdep.netlink) { in avahi_interface_monitor_free_osdep()
374 avahi_netlink_free(m->osdep.netlink); in avahi_interface_monitor_free_osdep()
375 m->osdep.netlink = NULL; in avahi_interface_monitor_free_osdep()
386 if (!avahi_netlink_work(m->osdep.netlink, 1) == 0) in avahi_interface_monitor_sync()