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

MFC after:	4 weeks
This commit is contained in:
tuexen 2017-09-30 12:30:05 +00:00
parent 76aaad634b
commit c8f149c5d0

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)