Lines Matching full:handle
35 struct nl_sock *handle = NULL;
55 handle = nl_socket_alloc();
56 if (!handle) {
61 err = nl_connect(handle, NETLINK_ROUTE);
68 err = rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache);
116 err = rtnl_link_add(handle, rlink, NLM_F_CREATE);
132 if (handle)
133 nl_socket_free(handle);
141 struct nl_sock *handle = NULL;
147 handle = nl_socket_alloc();
148 if (!handle) {
153 err = nl_connect(handle, NETLINK_ROUTE);
160 err = rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache);
175 err = rtnl_link_delete(handle, rlink);
189 if (handle)
190 nl_socket_free(handle);