diff --git a/raw.c b/raw.c index 15c9756..0bd15b0 100644 --- a/raw.c +++ b/raw.c @@ -279,7 +279,7 @@ static int raw_recv(struct transport *t, int fd, void *buf, int buflen, buflen += hlen; hdr = (struct eth_hdr *) ptr; - cnt = sk_receive(fd, ptr, buflen, addr, hwts, 0); + cnt = sk_receive(fd, ptr, buflen, addr, hwts, MSG_DONTWAIT); if (cnt >= 0) cnt -= hlen; diff --git a/udp.c b/udp.c index 36802fb..826bd12 100644 --- a/udp.c +++ b/udp.c @@ -210,7 +210,7 @@ no_event: static int udp_recv(struct transport *t, int fd, void *buf, int buflen, struct address *addr, struct hw_timestamp *hwts) { - return sk_receive(fd, buf, buflen, addr, hwts, 0); + return sk_receive(fd, buf, buflen, addr, hwts, MSG_DONTWAIT); } static int udp_send(struct transport *t, struct fdarray *fda, diff --git a/udp6.c b/udp6.c index 744a5bc..ba5482e 100644 --- a/udp6.c +++ b/udp6.c @@ -227,7 +227,7 @@ no_event: static int udp6_recv(struct transport *t, int fd, void *buf, int buflen, struct address *addr, struct hw_timestamp *hwts) { - return sk_receive(fd, buf, buflen, addr, hwts, 0); + return sk_receive(fd, buf, buflen, addr, hwts, MSG_DONTWAIT); } static int udp6_send(struct transport *t, struct fdarray *fda,