Module Name: src
Committed By: roy
Date: Thu Mar 22 17:16:05 UTC 2018
Modified Files:
src/tests/net/icmp: t_ping.c
Log Message:
Handle ENOBUFS in recv
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/tests/net/icmp/t_ping.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/net/icmp/t_ping.c
diff -u src/tests/net/icmp/t_ping.c:1.17 src/tests/net/icmp/t_ping.c:1.18
--- src/tests/net/icmp/t_ping.c:1.17 Fri Jan 13 21:30:42 2017
+++ src/tests/net/icmp/t_ping.c Thu Mar 22 17:16:05 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ping.c,v 1.17 2017/01/13 21:30:42 christos Exp $ */
+/* $NetBSD: t_ping.c,v 1.18 2018/03/22 17:16:05 roy Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.17 2017/01/13 21:30:42 christos Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.18 2018/03/22 17:16:05 roy Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -190,7 +190,7 @@ doping(const char *target, int loops, u_
(struct sockaddr *)&pingee, &slen)) > 0) {
succ++;
}
- if (n == -1 && errno == EAGAIN)
+ if (n == -1 && (errno == EAGAIN || errno == ENOBUFS))
continue;
atf_tc_fail_errno("recv failed");
}