Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/samples/net/sockets/packet/src/
Dpacket.c37 static struct packet_data sock_packet; variable
151 ret = start_socket(&sock_packet.recv_sock); in recv_packet()
157 ret = setsockopt(sock_packet.recv_sock, SOL_SOCKET, SO_RCVTIMEO, in recv_packet()
165 ret = recv_packet_socket(&sock_packet); in recv_packet()
238 ret = start_socket(&sock_packet.send_sock); in send_packet()
245 ret = send_packet_socket(&sock_packet); in send_packet()
300 if (sock_packet.recv_sock >= 0) { in main()
301 (void)close(sock_packet.recv_sock); in main()
304 if (sock_packet.send_sock >= 0) { in main()
305 (void)close(sock_packet.send_sock); in main()