Commit Graph

119 Commits

Author SHA1 Message Date
pooka 3b00d9689f Use RUMPPRG. I think it's safe to say there's not going to be a
new upstream version of traceroute to import.

AS# lookup is still done using host networking.  Rationale: the
relevance to where that data comes from with respect to network
tracing is zero (be it socket, local file, db, whatever).
2010-12-15 00:09:41 +00:00
kefren 14ce3efb4a Fix incomplete extensions sanity checks 2010-07-02 12:13:11 +00:00
dholland 27bc337fe3 with luck this is the last one 2010-05-30 00:52:06 +00:00
lukem d877c4c3c0 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)
2009-04-22 15:23:01 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
christos c709bea66c Use htonl like ping/traceroute6 do, from Markus Mayer 2008-07-17 19:23:17 +00:00
christos 53bc7350a9 PR/39157: Markus Mayer: traceroute not 64 bit aware (struct timeval issue) 2008-07-16 21:34:16 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
seanb 56143d3b3c - Set progname before dereference. 2008-01-16 19:18:06 +00:00
perry 4d096031f0 replace instances of __attribute__((__packed__)) with __packed 2007-12-15 16:03:29 +00:00
tls 4147a3c54a 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.
2007-05-28 12:06:17 +00:00
scw cf78539af7 Undo a workaround for an old SH5 toolchain bug.
No functional change.
2007-04-08 09:43:51 +00:00
elad 1232ea27c4 PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
elad e35f123530 PR/19069: Jun-ichiro itojun Hagino: traceroute(8) and traceroute6(8) can
send packet to udp port 0, which is illegal
2006-10-07 10:23:33 +00:00
elad 06a208eecf Move socket calls way up and drop root privileges sooner. 2006-09-24 11:34:35 +00:00
rpaulo 134b1ef326 Add missing coma. 2006-05-31 20:23:52 +00:00
rpaulo fc5eb63af6 It doesn't make sense to print the MPLS ttl here.
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
rpaulo 39c9cdcdbf Show MPLS ICMP extensions. Only available if -M is passed.
Example:
	RC02-02 (195.245.142.66)  45.707 ms  20.418 ms  34.042 ms [MPLS: label: 515, exp: 0x0, ttl: 1]
	gr1-p340.attga.ip.att.net (12.123.20.190)  241.878 ms  251.945 ms [MPLS: label: 32133, exp: 0x0, ttl: 1]


Based on PR 22523: By Jesper Skriver (updated by ww@parc.styx.org and Mihai
CHELARU).

Things not in the PR that I changed/added:
       * changed exp and label to lower case
       * added ttl (probably not worth it but who knows..)
       * KNF/style/indent
       * C99 uintXX_t
2006-02-17 21:31:18 +00:00
wiz 227106a6a2 No leading zero in date strings.
XXX: this page needs conversion to mdoc.
2005-11-09 23:43:59 +00:00
uwe 7541580e69 \(<= is the proper roff for <=. Fix another \*[Le] missed in the
previous commit.  While here, properly mark up minus in -p description.
2005-11-06 17:39:45 +00:00
rpaulo 033766f3a8 It's lilac-dmc.Berkeley.EDU, not lbl-csam.arpa. A 12 years old typo!
Also, \*[Le] doesn't seem to work well here, so replace it with '<='
as FreeBSD did. This problem was spotted by joerg@.
2005-11-06 16:40:55 +00:00
peter 960f4edd01 The default hops is not 30, but is taken from the net.inet.ip.ttl sysctl
variable.  Fixes PR/30209 from Jed Davis.
2005-06-14 13:55:59 +00:00
itojun 2a4c071a4f do not disclose endian/pid. henning@openbsd 2004-04-22 01:41:22 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
itojun 3d2b0dbc0e strncpy -> strlcpy 2003-05-17 18:13:55 +00:00
itojun 5818b97495 assume getifaddrs(3) 2003-05-15 14:47:49 +00:00
itojun e24f1908e1 byebye savestr. with savestr() we can't free(). 2003-05-15 14:34:39 +00:00
itojun 723a0d30ad just for safety 2003-05-15 00:08:10 +00:00
itojun f2bfdc2f65 traceroute.c doesn't use savestr() 2003-05-15 00:04:16 +00:00
wiz 1afb9ef148 NFSNET. From Igor Sobrado in PR 19691. 2003-04-06 20:14:41 +00:00
perry eafc4fe7d1 MERCHANTIBILITY->MERCHANTABILITY
4.4bsd->4.4BSD
PR misc/20747 from Igor Sobrado
Note he also asked for NSFNet -> NSFNET which I didn't do -- it seems
arbitrary and unneeded.
XXX Patch submitted back to traceroute@ee.lbl.gov -- are they still active?
XXX Should this be converted to mdoc?
2003-03-31 00:32:54 +00:00
wiz d59e6d5863 HP-UX, not HPUX. Igor Sobrado, PR 19678. 2003-03-30 21:37:52 +00:00
wiz 3425830569 Uppercase ULTRIX. Igor Sobrado in PR 19678. 2003-03-30 21:20:17 +00:00
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
wiz 0691bb2061 Fix order of letters in calculated, from Adrian Mrva. 2002-12-21 12:48:51 +00:00
itojun 07780ab297 die if strdup failure 2002-11-16 15:43:52 +00:00
itojun 240664d004 strto* audit. 2002-11-16 03:36:17 +00:00
itojun 901d58cdce poll.h, not sys/poll.h 2002-10-01 05:56:12 +00:00
mycroft 36b12b30ec select() -> poll() 2002-09-18 23:33:37 +00:00
itojun 072e5e6887 it is no use to do SO_DONTROUTE on receive socket. stevesk@openbsd 2002-08-12 02:51:07 +00:00
itojun d36c8b47de no need for struct timezone. From: Kevin Steves <kevin@atomicgears.com> 2002-08-09 02:57:09 +00:00
itojun f34e694103 correct in_cksum2 for odd length case 2002-08-01 09:03:50 +00:00
itojun 80964024a7 kill register variable decls, they are meaningless these days 2002-08-01 09:02:18 +00:00
itojun 518af973ec u_short cleansing (use u_int16_t where appropriate).
XXX in_cksum2 does not seem correct in odd length case
2002-08-01 08:41:32 +00:00
scw 4036c57dcb Work-around an internal compiler error on the SuperH sh5 toolchain. 2002-07-11 20:07:07 +00:00
wiz b73d58cd80 Remove __P(). 2002-07-06 21:52:05 +00:00
wiz 56b7e3b326 Remove some unnecessary cruft. 2002-07-06 21:51:49 +00:00
wiz f718edfc2a unifdef __STDC__ 2002-07-06 21:46:59 +00:00
itojun 1fd7b003fa it is highly unlikely that protocol # for ip/icmp to change. from deraadt. 2002-06-29 12:12:57 +00:00