Home
last modified time | relevance | path

Searched refs:nf_sock (Results 1 – 2 of 2) sorted by relevance

/external/libnl/src/
Dnf-queue.c23 static struct nl_sock *nf_sock; variable
48 nfnl_queue_msg_send_verdict(nf_sock, msg); in obj_input()
70 nf_sock = nfnl_queue_socket_alloc(); in main()
71 if (nf_sock == NULL) in main()
74 nl_socket_disable_seq_check(nf_sock); in main()
75 nl_socket_modify_cb(nf_sock, NL_CB_VALID, NL_CB_CUSTOM, event_input, NULL); in main()
86 nl_cli_connect(nf_sock, NETLINK_NETFILTER); in main()
91 nfnl_queue_pf_unbind(nf_sock, family); in main()
92 if ((err = nfnl_queue_pf_bind(nf_sock, family)) < 0) in main()
114 if ((err = nfnl_queue_create(nf_sock, queue)) < 0) in main()
[all …]
Dnf-log.c53 struct nl_sock *nf_sock; in main() local
62 nf_sock = nl_cli_alloc_socket(); in main()
63 nl_socket_disable_seq_check(nf_sock); in main()
64 nl_socket_modify_cb(nf_sock, NL_CB_VALID, NL_CB_CUSTOM, event_input, NULL); in main()
72 nl_cli_connect(nf_sock, NETLINK_NETFILTER); in main()
79 nfnl_log_pf_unbind(nf_sock, family); in main()
80 if ((err = nfnl_log_pf_bind(nf_sock, family)) < 0) in main()
102 if ((err = nfnl_log_create(nf_sock, log)) < 0) in main()
127 maxfd = nffd = nl_socket_get_fd(nf_sock); in main()
140 nl_recvmsgs_default(nf_sock); in main()