Lines Matching refs:nl
211 struct mnl_socket *nl;
216 nl = mnl_socket_open(NETLINK_NETFILTER);
217 if (nl == NULL) {
222 if (mnl_socket_bind(nl, 0, MNL_SOCKET_AUTOPID) < 0) {
230 if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) {
242 if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) {
249 if (opts.timeout && setsockopt(mnl_socket_get_fd(nl),
256 return nl;
273 struct mnl_socket *nl;
285 nl = open_queue();
286 portid = mnl_socket_get_portid(nl);
291 ret = mnl_socket_recvfrom(nl, buf, buflen);
317 if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) {
323 mnl_socket_close(nl);