summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2016-09-11 19:52:47 +0000
committerflorian <florian@openbsd.org>2016-09-11 19:52:47 +0000
commit85832201386269dd4c16f5bd5f9117818fc7cf4b (patch)
tree41c90b9cecf06df59c961b69e2000c594bda5a4f
parentWhitespace (diff)
downloadwireguard-openbsd-85832201386269dd4c16f5bd5f9117818fc7cf4b.tar.xz
wireguard-openbsd-85832201386269dd4c16f5bd5f9117818fc7cf4b.zip
Crank default packetsize to ping(8) levels.
-rw-r--r--sbin/ping6/ping6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index c02d38c212d..c2281a1f63b 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.185 2016/09/11 19:49:51 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.186 2016/09/11 19:52:47 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -117,11 +117,11 @@ struct payload {
u_int8_t mac[SIPHASH_DIGEST_LENGTH];
};
+#define DEFDATALEN (64 - 8) /* default data length */
#define IP6LEN 40
#define ICMP6ECHOLEN 8 /* icmp echo header len excluding time */
#define ICMP6ECHOTMLEN sizeof(struct payload)
#define EXTRA 256 /* for AH and various other headers. weird. */
-#define DEFDATALEN ICMP6ECHOTMLEN
#define MAXPAYLOAD IPV6_MAXPACKET - IP6LEN - ICMP6ECHOLEN
#define MAXWAIT_DEFAULT 10 /* secs to wait for response */