git: traceroute(8): Fix ip_len byteorder to network order
Aaron LI
aly at crater.dragonflybsd.org
Tue Mar 3 00:17:04 PST 2026
commit 467c5b0a56e915309e80ed1068d782e663884abd
Author: Aaron LI <aly at aaronly.me>
Date: Tue Mar 3 15:47:19 2026 +0800
traceroute(8): Fix ip_len byteorder to network order
Commit 2ba12c9ccce24e5186e60a8be059faf55cd27e21 changed the kernel to
accept 'ip_len' in the network byte order. That commit adjusted ping(8)
but missed traceroute(8).
Without this fix, traceroute(8) simply failed with sendto() returning
the EINVAL errno.
While there, simply assign 0 instead of htons(0) to ip_off field.
Summary of changes:
usr.sbin/traceroute/traceroute.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/467c5b0a56e915309e80ed1068d782e663884abd
--
DragonFly BSD source repository
More information about the Commits
mailing list