svn commit: r332207 - stable/11/usr.sbin/traceroute6
Michael Tuexen
tuexen at FreeBSD.org
Sat Apr 7 19:23:52 UTC 2018
Author: tuexen
Date: Sat Apr 7 19:23:51 2018
New Revision: 332207
URL: https://svnweb.freebsd.org/changeset/base/332207
Log:
MFC r324122:
Fix reporting of probing size. This bug was introduced in r324119.
Modified:
stable/11/usr.sbin/traceroute6/traceroute6.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/traceroute6/traceroute6.c
==============================================================================
--- stable/11/usr.sbin/traceroute6/traceroute6.c Sat Apr 7 19:22:32 2018 (r332206)
+++ stable/11/usr.sbin/traceroute6/traceroute6.c Sat Apr 7 19:23:51 2018 (r332207)
@@ -904,7 +904,8 @@ main(int argc, char *argv[])
if (source)
fprintf(stderr, " from %s", source);
fprintf(stderr, ", %lu hops max, %lu byte packets\n",
- max_hops, datalen);
+ max_hops,
+ datalen + ((useproto == IPPROTO_UDP) ? sizeof(struct udphdr) : 0));
(void) fflush(stderr);
if (first_hop > 1)
More information about the svn-src-stable
mailing list