Commit Graph

96 Commits

Author SHA1 Message Date
is a11ec6ccb8 Don't forget to update the UDP length when changing the packet length.
Reported by Johan Danielsson in PR 7781; the fix is an updated version
(by the same person) of the patch in the PR.
1999-06-16 13:52:58 +00:00
is 6f6fd8467a Cosmetics: a) add missing \n-s, b) this is ntohs, not htons, here. 1999-06-16 13:26:16 +00:00
tron ab86ce8dab Fix byte ordering problem on little endian systems. Patch supplied by
Jarle Greipsland in PR bin/7700.
1999-06-05 09:50:39 +00:00
christos 974dcb4997 We have RAW_OPTIONS so enable them. 1999-02-26 22:43:03 +00:00
explorer 3004daca95 Allow non-root users to use ALIASES on real interfaces or on lo0. 1999-02-24 21:21:24 +00:00
christos 0b8b373b79 Limit wait time, so that people cannot use this as a flooding tool.
From bugtraq, but fixed differently than suggested.
1999-02-17 07:17:28 +00:00
cjs b3523bee1d Oops. We don't need limits.h in this program. 1999-02-16 23:27:43 +00:00
cjs b8bcd9b643 If not root, make sure source address matches a local interface. 1999-02-16 23:18:40 +00:00
cjs 8164a79fad Check select() return value, and abort the program if an error is
returned.  Otherwise after sending a packet, select() may return
immediately (if there's an error of some sort) and traceroute
solders on, sending more packets with no delay in between. This is
effectively a small flood attack.
1999-02-16 20:47:24 +00:00
tron 8c2d809b71 Use a little bit of magic suggested by Ken Hornstein to find an
appropriate source address for the UDP packets. Fixes PR bin/4427
by Luke Mewburn.
1998-12-09 22:53:29 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
is a9f772b8bb Add path mtu discovery. Idea and code fragments by W. Richard Stevens. 1998-07-17 23:45:24 +00:00
mrg 32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
mrg 26b338e7f0 ensure we do not overrun errbuf. 1998-07-04 20:47:24 +00:00
ross 4b634c4e10 Much cleaner fix for alignment error bug. 1997-11-03 21:17:17 +00:00
ross ba9c8e00db Eliminate some alignment assumptions in packed IP/UDP frames. (port-alpha issue) 1997-10-31 23:32:24 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem 2ba239a7a3 getopt returns -1 not EOF 1997-10-17 13:57:02 +00:00
cjs faa16d67af Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:47:38 +00:00
christos f2a271f76d Make imports easier. 1997-10-04 16:33:04 +00:00
christos 89ab9fcd0f Fix conflicts. 1997-10-04 16:31:24 +00:00
christos 313a9cff6b Import LBL's traceroute-1.4a5 1997-10-03 22:25:12 +00:00
is 3845c4168d Make it recognize ICMP_UNREACH_ADMIN_PROHIBITED (type 13) as !A, and print
!{number} for unknown numbers.
This patch is part of PR 4038 by Havard Eidnes <he@vader.runit.sintef.no>,
who in turn did loosely base his patch on the FreeBSD 2.2.2 version.
1997-09-02 21:48:50 +00:00
mrg b6bb351e9c be safe with buffers. 1997-04-13 13:45:02 +00:00
mrg a4cf268e76 lite2 1997-02-13 05:39:12 +00:00
thorpej af1f12dc6e Add a -l flag, which displays the ttl of the returned packet.
From D'Arcy J.M. Cain <darcy@druid.com>, PR #2773.
1996-09-27 01:34:51 +00:00
explorer 4f6bc4307e fix two security holes; recently posted to freebsd-bugs 1996-09-11 23:53:38 +00:00
explorer 1e7535e577 Do the timeout in bin/2701 a bit differently. 1996-08-16 21:36:18 +00:00
explorer 4022c55a29 Fix traceroute timeout problems and a printing problem. Closes pr bin/2701 1996-08-16 20:47:31 +00:00
jtc fe16013cee Fixed reversed inet_aton condition test; From PR #2579 1996-06-30 22:51:11 +00:00
mycroft 34b0d58fba Fix tiny documentation error; default timeout is 5s, not 3s. 1995-10-12 03:05:50 +00:00
mycroft 800709ce22 Use inet_aton(), not inet_addr(). 1995-05-21 15:50:45 +00:00
glass 1290cb93c0 botched rcsid fix completely.. 1995-03-27 02:24:13 +00:00
glass bbb6bf7c90 new rcsid format. small cleanup 1995-03-26 21:45:18 +00:00
mycroft 58b580b79b Remove unused tvsub(). 1995-03-21 14:29:14 +00:00
mycroft 28667663d2 Clean up deleted files. 1995-01-04 05:13:04 +00:00
mycroft e1dcc80293 Convert a few more. 1995-01-04 04:47:42 +00:00
mycroft aeb42b9ada Convert some things to use err*()/warn*(). 1995-01-04 04:42:09 +00:00
mycroft 9ec22f1c91 Add a `-g' option for loose source routing, as implemented by John Hawkinson
and I.
1995-01-04 04:28:18 +00:00
cgd d065420b32 specify man pages the new way. 1994-12-22 11:43:15 +00:00
mycroft 3d70e198e5 Update from 4.4-Lite. 1994-05-16 19:15:57 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 3731815919 Add RCS identifiers. 1993-07-30 20:50:20 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00