Home
last modified time | relevance | path

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

/linux/drivers/vhost/
H A Dnet.c1154 size_t vhost_len, sock_len; in handle_rx() local
1184 sock_len = vhost_net_rx_peek_head_len(net, sock->sk, in handle_rx()
1186 if (!sock_len) in handle_rx()
1188 sock_len += sock_hlen; in handle_rx()
1189 vhost_len = sock_len + vhost_hlen; in handle_rx()
1220 pr_debug("Discarded rx packet: len %zd\n", sock_len); in handle_rx()
1233 sock_len, MSG_DONTWAIT | MSG_TRUNC); in handle_rx()
1237 if (unlikely(err != sock_len)) { in handle_rx()
1239 " len %d, expected %zd\n", err, sock_len); in handle_rx()
1281 else if (!sock_len) in handle_rx()
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c475 size_t sock_len; in ovpn_socket() local
496 sock_len = sizeof(*in); in ovpn_socket()
503 sock_len = sizeof(*in6); in ovpn_socket()
533 ret = bind(s, (struct sockaddr *)&local_sock, sock_len); in ovpn_socket()