Searched refs:nl_sk (Results 1 – 2 of 2) sorted by relevance
112 int netlink_set_kernel_only(struct nl_sock *nl_sk) { in netlink_set_kernel_only() argument115 if (!nl_sk) { in netlink_set_kernel_only()119 int sockfd = nl_socket_get_fd(nl_sk); in netlink_set_kernel_only()129 struct nl_sock *nl_sk; in send_netlink_msg() local131 nl_sk = nl_socket_alloc(); in send_netlink_msg()132 if (!nl_sk) goto cleanup; in send_netlink_msg()134 if (nl_connect(nl_sk, NETLINK_ROUTE) != 0) goto cleanup; in send_netlink_msg()136 if (nl_send_auto_complete(nl_sk, msg) < 0) goto cleanup; in send_netlink_msg()138 if (netlink_set_kernel_only(nl_sk) < 0) goto cleanup; in send_netlink_msg()140 nl_recvmsgs(nl_sk, callbacks); in send_netlink_msg()[all …]
28 int netlink_set_kernel_only(struct nl_sock *nl_sk);