Commit Graph

31 Commits

Author SHA1 Message Date
Rui Paulo
8ea0d8cff1 Add AS lookup functionality. On each hop we query a whois server to
find the corresponding AS for that IP (-a switch).
We can also choose a different whois server with the -A switch. The
default is whois.radb.net.

Obtained from:	       NetBSD
Reviewed by:	       bms, njl (mentor)
Approved by:	       njl (mentor)
2008-02-20 23:29:53 +00:00
Ruslan Ermilov
2b46c64c9c Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
Ruslan Ermilov
8340281fb1 NOIPSEC -> TRACEROUTE_NO_IPSEC 2004-12-21 12:44:20 +00:00
Bill Fenner
f70f2fbe97 Update for traceroute 1.4a12 2002-07-28 02:27:07 +00:00
Bill Fenner
c898fd637d Add '+FreeBSD' to the version string, to reflect that this program
bears little relationship to the one from LBL with the same
 name and version number.
2002-07-23 00:56:52 +00:00
Ruslan Ermilov
cda2a9b2f0 Set BINOWN=root explicitly for setuid root binaries.
This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
2001-09-13 06:48:18 +00:00
David E. O'Brien
90e655ea4e Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
Ruslan Ermilov
3c5021685e Fetch the default maximum TTL value from the net.inet.ip.ttl MIB.
PR:		bin/19598
MFC after:	1 week
2001-06-06 16:12:59 +00:00
Ruslan Ermilov
345e52e742 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4 Set the default manual section for usr.sbin/ to 8. 2001-03-20 18:17:26 +00:00
Yoshinobu Inoue
9bad006e54 Don't compile in IPsec support when NOIPSEC is defined.
PR: bin/17739
Submitted by: Omachonu Ogali <oogali@intranova.net>
2000-04-01 21:48:07 +00:00
Yoshinobu Inoue
497f9e5a33 Bypass IPsec for traceroute invoked by root.
PR: bin/17606
Submitted by: Louis Mamakos <louie@TransSys.COM
2000-03-30 01:33:39 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Hidetoshi Shimokawa
a911876b48 Add '-fno-builtin' to CFLAGS for alpha.
Builtin memcpy is not align-aware.

Approved by: jkh
1999-01-13 10:27:00 +00:00
David E. O'Brien
2887f586f0 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
Warner Losh
42d494a30b $@ is deprecated, use longer forms of single char macros 1998-06-09 05:36:48 +00:00
Peter Wemm
476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Bill Fenner
7b5698c217 Grab traceroute out of src/contrib/traceroute 1996-09-30 19:49:54 +00:00
Bill Fenner
83fa788e4d Change strcpy() to strncpy() in several places, and give gethostname()
the real buffer size.  Note that the strncpy(domain, ...) doesn't need to
be a strncpy(), since it is copying from itself to itself, but belts
and suspenders don't hurt and this is not time-critical code.

Fixes the half of PR bin/1581 that wasn't fixed in rev 1.7

Submitted by:	Karl <karl@codebase.mcs.net>
1996-09-10 00:50:13 +00:00
Peter Wemm
3f22340731 Decode ICMP_UNREACH_FILTER_PROHIB responses as !F, from RFC1812.
Suggested by: Bill Fenner <fenner@parc.xerox.com>

Additionally, print unrecognised ICMP_UNREACH codes numerically. eg, code
15 would show up as !<15>.
1996-08-21 05:59:19 +00:00
Peter Wemm
e86f5a4cd3 Back out part of my previous commit. The bug was fixed over 12 months
ago in FreeBSD more cleanly.
1996-08-21 04:31:28 +00:00
Peter Wemm
b011f9fd8f Fixes from NetBSD:
- inet_ntoa() returns a pointer to a static buffer, dont use it twice
   in the same printf().
 - prevent the possibility of never timing out
 - Report two more ICMP error types (prohibited nets etc)
And some (commented out) enhancements that I use, but some don't like.
1996-08-17 10:37:28 +00:00
Bill Fenner
aba3a4ce1b Fix last commit (and PR bin/1489) by creating both sockets before
setuid().
1996-08-13 16:28:59 +00:00
Bill Fenner
f1284d7a51 Drop setuid ASAP, to minimize code executed as root.
Reviewed by:	pst
1996-08-09 06:00:53 +00:00
Paul Traina
bb45826d08 Bring in LBL traceroute, which has the '-g' option. This is a bugfixed and
modified version of Leres' latest work.  No FreeBSD changes have been
spammed.
1996-03-13 08:04:29 +00:00
Andrey A. Chernov
22cb768412 Hostname points to static area which overrides with each gethost*
call, strdup() it.
1996-01-19 03:18:50 +00:00
Andrey A. Chernov
0606a87217 bugfix: traceroute hangs forever, if another ICMP traffics exists and
timeout occurse, close PR 612
Submitted by: Bill Fenner <fenner@parc.xerox.com>
1995-07-23 01:25:33 +00:00
David Greenman
59df70ee2f Changed output formatting to correctly represent the precision - it's
not cool to truncate trailing zeros..
1994-08-29 17:45:43 +00:00
Garrett Wollman
84e59eb50d Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
Rodney W. Grimes
dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00