Fix reporting of probing size. This bug was introduced in r324119.

MFC after:	4 weeks
This commit is contained in:
Michael Tuexen 2017-09-30 12:30:05 +00:00
parent 9d8b46c89c
commit d55fae0299

View File

@ -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)