Date: Sat, 30 Sep 2017 12:30:05 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324122 - head/usr.sbin/traceroute6 Message-ID: <201709301230.v8UCU5H6035028@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Sep 30 12:30:05 2017 New Revision: 324122 URL: https://svnweb.freebsd.org/changeset/base/324122 Log: Fix reporting of probing size. This bug was introduced in r324119. MFC after: 4 weeks Modified: head/usr.sbin/traceroute6/traceroute6.c Modified: head/usr.sbin/traceroute6/traceroute6.c ============================================================================== --- head/usr.sbin/traceroute6/traceroute6.c Sat Sep 30 12:06:21 2017 (r324121) +++ head/usr.sbin/traceroute6/traceroute6.c Sat Sep 30 12:30:05 2017 (r324122) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709301230.v8UCU5H6035028>