Lines Matching refs:nl_sock
69 struct nl_sock *nl_sock; member
142 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs()
176 ctx->nl_sock = nl_socket_alloc(); in nl_ctx_alloc_flags()
177 if (!ctx->nl_sock) { in nl_ctx_alloc_flags()
182 nl_socket_set_buffer_size(ctx->nl_sock, 8192, 8192); in nl_ctx_alloc_flags()
184 ret = genl_connect(ctx->nl_sock); in nl_ctx_alloc_flags()
193 setsockopt(nl_socket_get_fd(ctx->nl_sock), SOL_NETLINK, NETLINK_EXT_ACK, in nl_ctx_alloc_flags()
196 ctx->ovpn_dco_id = genl_ctrl_resolve(ctx->nl_sock, OVPN_FAMILY_NAME); in nl_ctx_alloc_flags()
215 nl_socket_set_cb(ctx->nl_sock, ctx->nl_cb); in nl_ctx_alloc_flags()
227 nl_socket_free(ctx->nl_sock); in nl_ctx_alloc_flags()
243 nl_socket_free(ctx->nl_sock); in nl_ctx_free()
324 nl_send_auto_complete(ctx->nl_sock, ctx->nl_msg); in ovpn_nl_msg_send()
1530 static int ovpn_get_mcast_id(struct nl_sock *sock, const char *family, in ovpn_get_mcast_id()
1582 struct nl_sock *sock; in ovpn_listen_mcast()