From f2787bc79e9f03af25cc4610829a56ba66d32573 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 30 Aug 2016 13:50:13 +0000 Subject: [PATCH] Make sure to not decrease packet size when running with -v. OK benno --- sbin/ping6/ping6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index f8681350cac..e478d9d07ce 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.148 2016/08/30 12:10:10 florian Exp $ */ +/* $OpenBSD: ping6.c,v 1.149 2016/08/30 13:50:13 florian Exp $ */ /* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */ /* @@ -443,7 +443,7 @@ main(int argc, char *argv[]) } else timing = 0; /* in F_VERBOSE case, we may get non-echoreply packets*/ - if (options & F_VERBOSE) + if (options & F_VERBOSE && datalen < 2048) packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA; /* XXX 2048? */ else packlen = datalen + IP6LEN + ICMP6ECHOLEN + EXTRA; -- 2.20.1