Lines Matching refs:rtnl_handle
40 struct rtnl_handle *rtnl_handle; member
235 h->rtnl_handle = rtnl_open(); in nlif_open()
236 if (h->rtnl_handle == NULL) in nlif_open()
239 if (rtnl_handler_register(h->rtnl_handle, &h->ifadd_handler) < 0) in nlif_open()
242 if (rtnl_handler_register(h->rtnl_handle, &h->ifdel_handler) < 0) in nlif_open()
248 rtnl_handler_unregister(h->rtnl_handle, &h->ifadd_handler); in nlif_open()
250 rtnl_close(h->rtnl_handle); in nlif_open()
268 rtnl_handler_unregister(h->rtnl_handle, &h->ifadd_handler); in nlif_close()
269 rtnl_handler_unregister(h->rtnl_handle, &h->ifdel_handler); in nlif_close()
270 rtnl_close(h->rtnl_handle); in nlif_close()
292 if (h->rtnl_handle) in nlif_catch()
293 return rtnl_receive(h->rtnl_handle); in nlif_catch()
302 if (h->rtnl_handle) in nlif_catch_multi()
303 return rtnl_receive_multi(h->rtnl_handle); in nlif_catch_multi()
316 if (rtnl_dump_type(h->rtnl_handle, RTM_GETLINK) < 0) in nlif_query()
331 if (h->rtnl_handle) in nlif_fd()
332 return h->rtnl_handle->rtnl_fd; in nlif_fd()