Lines Matching refs:nl
32 static struct mnl_socket *nl;
172 if (nl)
173 mnl_socket_close(nl);
193 struct mnl_socket *nl;
242 nl = mnl_socket_open(NETLINK_ROUTE);
243 if (nl == NULL)
247 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0)
251 portid = mnl_socket_get_portid(nl);
253 if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0)
257 ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
267 mnl_socket_close(nl);