Home | History | Annotate | Download | only in ap

Lines Matching refs:handle

27 	struct nl_sock *handle = NULL;
46 handle = nl_socket_alloc();
47 if (!handle) {
52 err = nl_connect(handle, NETLINK_ROUTE);
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink);
70 err = rtnl_link_get_kernel(handle, 0, vlan_if_name, &rlink);
104 err = rtnl_link_add(handle, rlink, NLM_F_CREATE);
118 if (handle)
119 nl_socket_free(handle);
127 struct nl_sock *handle = NULL;
132 handle = nl_socket_alloc();
133 if (!handle) {
138 err = nl_connect(handle, NETLINK_ROUTE);
145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink);
153 err = rtnl_link_delete(handle, rlink);
165 if (handle)
166 nl_socket_free(handle);