Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/icmp Handle ENOBUFS in recv



details:   https://anonhg.NetBSD.org/src/rev/a07c06826dbf
branches:  trunk
changeset: 831327:a07c06826dbf
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Mar 22 17:16:05 2018 +0000

description:
Handle ENOBUFS in recv

diffstat:

 tests/net/icmp/t_ping.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 49803e0d650c -r a07c06826dbf tests/net/icmp/t_ping.c
--- a/tests/net/icmp/t_ping.c   Thu Mar 22 15:23:43 2018 +0000
+++ b/tests/net/icmp/t_ping.c   Thu Mar 22 17:16:05 2018 +0000
@@ -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 @@
                    (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");
        }



Home | Main Index | Thread Index | Old Index