Home | History | Annotate | only in /src/usr.sbin/traceroute6
History log of /src/usr.sbin/traceroute6
RevisionDateAuthorComments
 1.12 03-Feb-2021  roy traceroute6: Remove __packed
 1.11 06-Sep-2020  mrg add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
 1.10 23-Apr-2018  maxv Remove CPPFLAGS+=-DUSE_RFC3542, it's not used anymore.
 1.9 10-May-2011  christos branches: 1.9.42;
Add AS support for traceroute6. While here cleanup both traceroute programs
a bit.
XXX: Error printing on traceroute should be revisited.
 1.8 22-Apr-2009  lukem Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)
 1.7 28-May-2007  tls branches: 1.7.20;
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.6 05-May-2006  rpaulo Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.
 1.5 08-Oct-2000  itojun use poll(2).
 1.4 07-Oct-2000  itojun avoid fd_set size overflow. from deraadt@openbsd, sync with kame.
 1.3 25-Feb-2000  mycroft branches: 1.3.4;
Nuke gratuitous setting of BINOWN and BINGRP.
 1.2 03-Jul-1999  itojun s/CFLAGS/CPPFLAGS/ for -D and -I.
 1.1 01-Jul-1999  itojun traceroute6: traceroute for IPv6.

TODO: better to be separate, or merged?
 1.3.4.2 18-Oct-2000  tv Pullup 1.5 [itojun]:
use poll(2).
 1.3.4.1 18-Oct-2000  tv Pullup 1.4 [itojun]:
avoid fd_set size overflow. from deraadt@openbsd, sync with kame.
 1.7.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.9.42.1 02-May-2018  pgoyette Synch with HEAD
 1.19 23-Apr-2018  wiz Remove -g from SYNOPSIS.
 1.18 23-Apr-2018  maxv Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.
 1.17 05-Aug-2017  wiz branches: 1.17.2;
Fix punctuation markup, remove superfluous Pp.
 1.16 04-Aug-2017  ginsbach Expand the traceroute6 man page

- Add a proper description paragraph before launching into describing the
options. More closely follow format of the traceroute(8) man page.
- Improve the wording for some option descriptions.
- Add description what what is printed and define what the possible
annotations mean.
 1.15 04-Jul-2017  wiz Use Ex.
 1.14 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.13 12-May-2011  wiz Sort options. Remove unnecessary quotes and Bk/Ek.
 1.12 10-May-2011  christos AS additions from Zafer Aydogan to print the AS path. Minor cleanups to compile
without WARNS=1 hackery.
 1.11 17-Sep-2005  ginsbach Add description for -r option. Description taken from traceroute man page.
 1.10 11-Sep-2005  wiz Fix -m description position. From YOMURA Masanori in private mail.
 1.9 30-Aug-2002  onoe branches: 1.9.4; 1.9.6;
Add -I (use icmp) option as traceroute.
sync w/kame
 1.8 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.7 24-Nov-2000  itojun move rcsid to the top
 1.6 04-Sep-2000  kleink For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
 1.5 12-Jun-2000  itojun print source address of query. support -f (skip first N hops).
do not choke on unexpected ND messages.
 1.4 16-Feb-2000  itojun branches: 1.4.2;
add missing command line arguments (target and datalen)
 1.3 19-Nov-1999  enami Don't pass so many args to .Nd macro. It just overflows.
 1.2 04-Jul-1999  itojun branches: 1.2.4;
add NetBSD RCS ID.
 1.1 01-Jul-1999  itojun traceroute6: traceroute for IPv6.

TODO: better to be separate, or merged?
 1.2.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.9.6.1 13-Sep-2005  tron Pull up following revision(s) (requested by wiz in ticket #766):
usr.sbin/traceroute6/traceroute6.8: revision 1.10
Fix -m description position. From YOMURA Masanori in private mail.
 1.9.4.1 13-Sep-2005  riz Pull up following revision(s) (requested by wiz in ticket #5842):
usr.sbin/traceroute6/traceroute6.8: revision 1.10
Fix -m description position. From YOMURA Masanori in private mail.
 1.17.2.1 02-May-2018  pgoyette Synch with HEAD
 1.52 03-Feb-2021  roy traceroute6: Remove __packed
 1.51 23-Apr-2018  maxv Clean up the IPsec ifdefs, same as ping6.
 1.50 23-Apr-2018  maxv ... another occurrence of OLDRAWSOCKET ...
 1.49 23-Apr-2018  maxv Remove dead code.
 1.48 23-Apr-2018  maxv Remove dead/broken code. We want to favor RFC3542 over RFC2292. No
functional change.
 1.47 23-Apr-2018  maxv Remove dead code.
 1.46 23-Apr-2018  maxv Remove now unused code.
 1.45 23-Apr-2018  maxv Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.
 1.44 17-Nov-2016  shm branches: 1.44.12;
CID 978587: Removed unnecessary check against NULL.
 1.43 10-Dec-2012  christos branches: 1.43.12;
PR/47304: Kouki Ooyatsu: -s (source IPv6 address to be used) option does not
work because the wrong variable is used.
XXX: Pullup to 6.
 1.42 04-Jan-2012  drochner branches: 1.42.2; 1.42.6;
include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
 1.41 15-May-2011  wiz branches: 1.41.4;
Sync usage with manpage.
 1.40 10-May-2011  christos AS additions from Zafer Aydogan to print the AS path. Minor cleanups to compile
without WARNS=1 hackery.
 1.39 13-May-2010  christos PR/19069: SUENAGA Hiroki: Original fix was defective because on big endian
the expression is not truncated to 16 bits, thus sending to port 65536 makes
the == 0 test fail and the packet ends up being sent.
 1.38 16-Feb-2009  is synchronize error flags with own comment and with traceroute, as discussed
on tech-net.
 1.37 07-Oct-2006  elad branches: 1.37.24; 1.37.26;
PR/19069: Jun-ichiro itojun Hagino: traceroute(8) and traceroute6(8) can
send packet to udp port 0, which is illegal
 1.36 05-May-2006  rpaulo Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.
 1.35 22-Apr-2004  itojun do not disclose endian/pid. henning@openbsd
 1.34 25-Jan-2004  itojun do not disclose endian/alignment by probe packet. from dreaadt@openbsd
via kame
 1.33 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.32 21-Jan-2003  itojun sysctl/setsockopt takes int, not u_long.
 1.31 21-Jan-2003  itojun fix arg size to IPV6_UNICAST_HOPS socket option. Hiroki Sato
 1.30 24-Oct-2002  itojun be more picky about argument parsing (check ERANGE from strtoul). sync w/kame
 1.29 23-Oct-2002  itojun make args u_long not to lose accuracy due to conversion/overflow.
from mark@openbsd
 1.28 08-Sep-2002  itojun socklen_t audit. from deraadt, sync w/kame
 1.27 30-Aug-2002  onoe Fixed trivial bugs in previous commit:
unnecessary socket is opened, and non-root user failed to execute...
 1.26 30-Aug-2002  onoe Add -I (use icmp) option as traceroute.
sync w/kame
 1.25 27-Aug-2002  itojun warn if multiple addresses are returned from DNS, like traceroute(8) does.
sync w/kame
 1.24 09-Aug-2002  itojun no need for struct timezone. From: Kevin Steves <kevin@atomicgears.com>
 1.23 29-Jun-2002  itojun check port number range. sync w/kame, pointed out by deraadt
 1.22 09-Jun-2002  itojun use strchr not index
 1.21 26-May-2002  itojun grab max hlim/ttl from kernel via sysctl. sync w/openbsd
 1.20 26-May-2002  itojun typo in port number setting
 1.19 26-May-2002  itojun KNF and other cleanups. from openbsd via kame
 1.18 19-Feb-2002  itojun sizeof pedant
 1.17 07-May-2001  kleink getopt(3): EOF -> -1.
 1.16 12-Jan-2001  itojun correct fd_set allocation. from deraadt
 1.15 22-Dec-2000  itojun use strlcpy/at throughout the code. more strct argument validation.
revoke setuid privilege earlier.

sync with kame.
 1.14 07-Oct-2000  itojun avoid fd_set size overflow. from deraadt@openbsd, sync with kame.
 1.13 07-Jul-2000  itojun warnx?/errx? audit (don't pass variable alone). from openbsd.
 1.12 30-Jun-2000  itojun be more careful about arg to errx?/warnx? (do not pass variable directly,
it may contain "%"). from openbsd, via kame.
 1.11 12-Jun-2000  itojun branches: 1.11.2;
print source address of query. support -f (skip first N hops).
do not choke on unexpected ND messages.
 1.10 12-Mar-2000  itojun branches: 1.10.2;
correct use of perror().
 1.9 02-Mar-2000  itojun typo fix (s/Ridirect/Redirect/)
 1.8 28-Feb-2000  itojun do not assume CMSG_xx are constant. (sync with latest kame)
 1.7 16-Feb-2000  itojun use getnameinfo(), not inet_ntop(), as much as possible.
(sync with recent kame)
 1.6 31-Jan-2000  itojun sync with latest libipsec/kernel.
 1.5 03-Sep-1999  itojun do not bark even if IPsec is turned off in kernel.
 1.4 30-Jul-1999  itojun allow "traceroute6 -q1 foo".

KAME PR: 135
 1.3 04-Jul-1999  itojun add NetBSD RCS ID.
 1.2 02-Jul-1999  thorpej Squash some NULL printf format warnings, providing better error messages
to the user in the process.
 1.1 01-Jul-1999  itojun traceroute6: traceroute for IPv6.

TODO: better to be separate, or merged?
 1.10.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11.2.3 18-Oct-2000  tv Pullup 1.14 [itojun]:
avoid fd_set size overflow. from deraadt@openbsd, sync with kame.
 1.11.2.2 27-Jul-2000  itojun pullup (approved by releng-1-5)
printf-like format pedant. do not pass string variable alone. use "%s".
from openbsd.

/cvsroot/basesrc/usr.sbin/netgroup_mkdb/netgroup_mkdb.c 1.9 -> 1.10
/cvsroot/basesrc/usr.sbin/pwd_mkdb/pwd_mkdb.c 1.17 -> 1.18
/cvsroot/basesrc/usr.sbin/quotaon/quotaon.c 1.14 -> 1.15
/cvsroot/basesrc/usr.sbin/rdate/rdate.c 1.10 -> 1.11
/cvsroot/basesrc/usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c 1.5 -> 1.6
/cvsroot/basesrc/usr.sbin/traceroute6/traceroute6.c 1.12 -> 1.13
/cvsroot/basesrc/usr.sbin/wsconscfg/wsconscfg.c 1.6 -> 1.7
/cvsroot/basesrc/usr.sbin/ypserv/revnetgroup/revnetgroup.c 1.7 -> 1.8
/cvsroot/basesrc/usr.sbin/ypserv/ypserv/ypserv.c 1.10 -> 1.11
 1.11.2.1 03-Jul-2000  thorpej Pull up rev. 1.12:
be more careful about arg to errx?/warnx? (do not pass variable directly,
it may contain "%"). from openbsd, via kame.
 1.37.26.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.37.24.1 24-Feb-2009  snj Pull up following revision(s) (requested by is in ticket #469):
usr.sbin/traceroute6/traceroute6.c: revision 1.38
synchronize error flags with own comment and with traceroute, as discussed
on tech-net.
 1.41.4.2 16-Jan-2013  yamt sync with (a bit old) head
 1.41.4.1 17-Apr-2012  yamt sync with head
 1.42.6.1 25-Feb-2013  tls resync with head
 1.42.2.1 06-Jul-2017  snj Pull up following revision(s) (requested by is in ticket #1427):
usr.sbin/traceroute6/traceroute6.c: revision 1.43
PR/47304: Kouki Ooyatsu: -s (source IPv6 address to be used) option does not
work because the wrong variable is used.
 1.43.12.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.44.12.1 02-May-2018  pgoyette Synch with HEAD

RSS XML Feed