Home
last modified time | relevance | path

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

/third_party/ltp/testcases/network/stress/ns-tools/
Dns-mcast_receiver.c371 size_t msgbuf_size; /* size of msgbuf */ in receive_mcast() local
380 optlen = sizeof(msgbuf_size); in receive_mcast()
381 if (getsockopt(sd, SOL_SOCKET, SO_RCVBUF, &msgbuf_size, &optlen) < 0) { in receive_mcast()
386 msgbuf = malloc(msgbuf_size + 1); in receive_mcast()
408 msglen = recvfrom(sd, msgbuf, msgbuf_size, MSG_DONTWAIT, in receive_mcast()
Dns-udpserver.c144 size_t msgbuf_size; /* size of msgbuf */ in respond_to_client() local
152 &msgbuf_size, &sock_optlen) < 0) { in respond_to_client()
159 msgbuf = malloc(msgbuf_size + 1); in respond_to_client()
168 if ((msglen = recvfrom(sock_fd, msgbuf, msgbuf_size, 0, in respond_to_client()