aboutsummaryrefslogtreecommitdiff
path: root/contrib/traceroute
Commit message (Collapse)AuthorAgeFilesLines
* Add AS lookup functionality. On each hop we query a whois server toRui Paulo2008-02-204-6/+331
| | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=176428
* Commit IPv6 support for FAST_IPSEC to the tree.George V. Neville-Neil2007-07-011-1/+1
| | | | | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re Notes: svn path=/head/; revision=171135
* o I failed to find a suitable explanation why traceroute(8) andMaxim Konovalov2007-04-301-1/+1
| | | | | | | | | | | | | traceroute6(8) force -w flag (wait time) to be > 1 sec. Make it possible to use 1 sec wait time. PR: bin/110933 Submitted by: Dmitry Marakasov Reviewed by: freebsd-net (silence) MFC after: 1 month Notes: svn path=/head/; revision=169144
* Make it so that the synopsis and usage message almost agree.David Malone2006-10-152-2/+2
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=163388
* Add a -D option to traceroute that prints the differences betweenDavid Malone2006-10-152-6/+72
| | | | | | | | | | | the probe packet we sent and the packet quoted by the ICMP response. Can be useful for spotting hops that change the packet in-flight or have problems generating correct ICMP responses. MFC after: 3 weeks Notes: svn path=/head/; revision=163387
* Make traceroute decode all the ICMP unreachable messages definedDavid Malone2006-06-132-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in http://www.iana.org/assignments/icmp-parameters. Thankfully IANA's list aggrees with <netinet/ip_icmp.h>. I've tried to do this in a way which is mostly consistent with tcptraceroute and Debian's version of traceroute. However, sometimes a letter is used twice by these versions, so I've gone with: LBL tcptr Debian (chosen) ICMP_UNREACH_NET !N !N !N !N ICMP_UNREACH_HOST !H !H !H !H ICMP_UNREACH_PROTOCOL !P !P !P !P ICMP_UNREACH_PORT ! !p ! ! ICMP_UNREACH_NEEDFRAG !F-%d !F !F-<%d> !F-<%d> ICMP_UNREACH_SRCFAIL !S !S !S !S ICMP_UNREACH_NET_UNKNOWN !<%d> !U !<%d> !U ICMP_UNREACH_HOST_UNKNOWN !<%d> !U !<%d> !W ICMP_UNREACH_ISOLATED !<%d> !I !I !I ICMP_UNREACH_NET_PROHIB !<%d> !A !A !A ICMP_UNREACH_HOST_PROHIB !<%d> !C !C !Z ICMP_UNREACH_TOSNET !<%d> !T !T !Q ICMP_UNREACH_TOSHOST !<%d> !T !T !T ICMP_UNREACH_FILTER_PROHIB !X !A !A !X ICMP_UNREACH_HOST_PRECEDENCE !V !<%d> !V !V ICMP_UNREACH_PRECEDENCE_CUTOFF !C !<%d> !C !C Graham Wilson is planning to use the same codes in Debian's version. MFC after: 3 weeks Notes: svn path=/head/; revision=159576
* o It's lilac-dmc.Berkeley.EDU, not lbl-csam.arpa.Maxim Konovalov2006-06-071-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=159386
* Option for setting a fixed destination port. This is useful for tracingCrist J. Clark2006-05-112-9/+21
| | | | | | | | | | | | to a host behind a firewall where only specific services are allowed. For example, to trace the hops to an HTTP server behind a firewall, $ traceroute -e -P tcp -p 80 www-firewalled.example.com MFC after: 1 week Notes: svn path=/head/; revision=158424
* - Update pretty print of multipath routes to better handle timeout of firstPav Lucistnik2006-01-101-1/+1
| | | | | | | | | | | | | | | | | | | probe Before: 5 * freebsd (195.250.137.134) 19.086 ms 24.694 ms After: 5 * freebsd (195.250.137.134) 19.086 ms 24.694 ms Fixes: bin/90098 Reported by: Jeremy Chadwick <freebsd@jdc.parodius.com> Approved by: andre MFC after: 1 day Notes: svn path=/head/; revision=154192
* Pretty print multipath routes.Andre Oppermann2005-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | Before (backslash in c syntax meaning): 6 p16-2-0-0.r21.sttlwa01.us.bb.verio.net (129.250.2.180) 71.027 ms \ p16-1-1-3.r20.sttlwa01.us.bb.verio.net (129.250.2.6) 66.730 ms 66.535 ms 7 xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.092 ms \ xe-3-1.r00.sttlwa01.us.bb.verio.net (129.250.2.205) 66.598 ms \ xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.024 ms After: 6 p16-2-0-0.r21.sttlwa01.us.bb.verio.net (129.250.2.180) 71.027 ms p16-1-1-3.r20.sttlwa01.us.bb.verio.net (129.250.2.6) 66.730 ms 66.535 ms 7 xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.092 ms xe-3-1.r00.sttlwa01.us.bb.verio.net (129.250.2.205) 66.598 ms xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.024 ms Submitted by: Richard A Steenbergen <ras at e-gerbil.net> MFC after: 3 days Notes: svn path=/head/; revision=149509
* Fix minor discrepancy between documentation and implementation: theThomas Quinot2005-04-121-1/+1
| | | | | | | | | destination port is incremented for each packet sent to the same hop. MFC after: 1 week Notes: svn path=/head/; revision=144951
* Remove an empty default: case to please GCC 3.4.2.Maxime Henrion2004-07-281-2/+0
| | | | Notes: svn path=/head/; revision=132796
* Check -s option source address for validity.Pierre Beyssac2004-04-171-2/+2
| | | | | | | | PR: bin/29026 MFC after: 1 week Notes: svn path=/head/; revision=128365
* Fix traceroute where [number of hops] * [number of packets per hop] > 255.Colin Percival2004-01-231-2/+2
| | | | | | | | | PR: misc/61336 Submitted by: Mike Hibler <mike@cs.utah.edu> Approved by: rwatson (mentor) Notes: svn path=/head/; revision=124859
* Fix misspelling.Bill Fenner2002-12-131-1/+1
| | | | | | | | PR: docs/44930 Submitted by: Michael McGoldrick <mmcgoldrick@linuxdriven.net> Notes: svn path=/head/; revision=107837
* Routing socket messages are padded to sizeof(long), not justBill Fenner2002-07-301-2/+4
| | | | | | | sizeof(u_int32_t). Notes: svn path=/head/; revision=100905
* Calculate checksums correctly when LSRR is in effect by passing theBill Fenner2002-07-281-24/+36
| | | | | | | | | | IP header and protocol header seperately. Also calculate TCP checksums. Submitted by: orion Notes: svn path=/head/; revision=100789
* Merge 1.4a12Bill Fenner2002-07-284-228/+613
| | | | Notes: svn path=/head/; revision=100787
* This commit was generated by cvs2svn to compensate for changes in r100784,Bill Fenner2002-07-2823-538/+3362
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=100785
| * Virgin import of LBL traceroute v1.4a12vendor/tracerouteBill Fenner2002-07-2826-713/+4017
| | | | | | | | Notes: svn path=/vendor/traceroute/dist/; revision=100784
* | s/ifdef/ifndef/.Daniel C. Sobral2002-07-231-1/+1
| | | | | | | | | | | | | | Fenner got this inverted through a misunderstanding between us. Notes: svn path=/head/; revision=100567
* | Add '+FreeBSD' to the version string, to reflect that this programBill Fenner2002-07-231-1/+2
| | | | | | | | | | | | | | | | bears little relationship to the one from LBL with the same name and version number. Notes: svn path=/head/; revision=100540
* | Add an ICMP protocol handler, partly based on LBL's traceroute 1.4 .Bill Fenner2002-07-222-4/+57
| | | | | | | | | | | | | | Submitted by: dcs Notes: svn path=/head/; revision=100535
* | Actually use gen_prep() and gen_check(), instead of udp_prep() andBill Fenner2002-07-221-3/+3
| | | | | | | | | | | | | | udp_check(), for unknown protocols. Notes: svn path=/head/; revision=100533
* | Allocate and clear the correct number of bytes for aRobert Drehmel2002-06-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | struct fd_set that should be able to hold sock + 1 bits. Before, it was apparently assumed that an fd_mask has the same size as type char. PR: bin/39617 Reported by: Peter N Lewis <peter@stairways.com.au> Notes: svn path=/head/; revision=98709
* | Fetch the default maximum TTL value from the net.inet.ip.ttl MIB.Ruslan Ermilov2001-06-062-10/+29
| | | | | | | | | | | | | | | | PR: bin/19598 MFC after: 1 week Notes: svn path=/head/; revision=77816
* | Defining usage() "__dead" is just ridiculous. It also won't compile withDavid E. O'Brien2000-10-271-2/+2
| | | | | | | | | | | | | | | | | | a June 2000 GCC 2.96 snapshot. Reviewed by: bde Notes: svn path=/head/; revision=67682
* | Don't write past the end of our fd_setKris Kennaway2000-10-081-4/+9
| | | | | | | | | | | | | | Obtained from: OpenBSD, via KAME Notes: svn path=/head/; revision=66810
* | Format string paranoia.Kris Kennaway2000-10-081-5/+5
| | | | | | | | Notes: svn path=/head/; revision=66809
* | Document the -S flag (added in rev. 1.4) in the usage() function.Guy Helmer2000-07-071-1/+1
| | | | | | | | | | | | | | | | PR: bin/18153 Prompted by: Nathan Ahlstrom <nrahlstr@winternet.com> Notes: svn path=/head/; revision=62786
* | Correct FreeBSD id place. Also correct vendor rcsid.Yoshinobu Inoue2000-03-301-3/+5
| | | | | | | | | | | | | | | | | | Specified by: bde Reviewed by: bde Notes: svn path=/head/; revision=58835
* | Bypass IPsec for traceroute invoked by root.Yoshinobu Inoue2000-03-301-1/+49
| | | | | | | | | | | | | | | | PR: bin/17606 Submitted by: Louis Mamakos <louie@TransSys.COM Notes: svn path=/head/; revision=58804
* | s/tcpdump/tracerouteAlexey Zelkin1999-12-201-1/+3
| | | | | | | | | | | | | | | | PR: docs/14523 Submitted by: Adam Morrison <adam@xpert.com> Notes: svn path=/head/; revision=54893
* | Fully document -q.David E. O'Brien1999-10-051-1/+5
| | | | | | | | | | | | | | Restore original $Header$. Notes: svn path=/head/; revision=51949
* | Fix bug (introduced by me) where UDP port numbers were starting at 1 insteadArchie Cobbs1999-06-251-3/+7
| | | | | | | | | | | | | | | | | | of 33435 like before. Reported by: John Polstra <jdp@polstra.com> Notes: svn path=/head/; revision=48221
* | Add a min TTL flag to go along with the max TTL flag. That is, this flagArchie Cobbs1999-05-122-20/+44
| | | | | | | | | | | | | | | | | | allows you to start tracing at a hop number other than 1. Submitted by: Stefan `Sec` Zehl <sec@42.org> Notes: svn path=/head/; revision=47071
* | Add the capability for traceroute(8) to send packets of any IP protocolArchie Cobbs1999-05-062-37/+244
| | | | | | | | | | | | | | | | | | | | instead of just UDP; an alternate protocol is specified by '-P proto'. This is useful for finding routers that are blocking packets based on IP protocol. New handlers can be added fairly easily to do protocol- specific things. Notes: svn path=/head/; revision=46542
* | Better fix for the traceroute flood bug.Dag-Erling Smørgrav1999-02-161-7/+16
| | | | | | | | | | | | | | Submitted by: bde Notes: svn path=/head/; revision=44086
* | If the user provided a large enough argument to the -w option, the sumDag-Erling Smørgrav1999-02-151-1/+3
| | | | | | | | | | | | | | would overflow and you'd end up doing select() with a negative timeout. Notes: svn path=/head/; revision=44057
* | Fix an alignment problem on alpha by doing a bytewise copy.John Birrell1998-06-061-2/+4
| | | | | | | | Notes: svn path=/head/; revision=36713
* | Fix an anomaly in the option descriptions.Steve Price1998-01-091-1/+2
| | | | | | | | | | | | | | | | PR: 5469 Submitted by: NOKUBI Hirotaka <h-nokubi@yyy.or.jp> Notes: svn path=/head/; revision=32373
* | Fix a typo. Oops.Sean Eric Fagan1996-10-081-2/+2
| | | | | | | | | | | | | | Submitted by: asami Notes: svn path=/head/; revision=18811
* | Paul objected to my previous change. This adds the same functionalitySean Eric Fagan1996-10-082-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (implemented better, admittedly) with a new option, '-S'. If the maintainers of traceroute (Van?) add a -S option, we will then be in conflict. Also added a too-brief description of the option in the man page. Someone with a better command of English than I at the moment should probably look over it and rephrase it. Reviewed by: pst, jkh Notes: svn path=/head/; revision=18803
* | Print out a summary of the loss percentages for each hop. No manual changesSean Eric Fagan1996-10-051-3/+7
| | | | | | | | | | | | | | | | | | just yet, I know, evil of me. Reviewed by: jkh Notes: svn path=/head/; revision=18695
* | Instructions on upgrading tracerouteBill Fenner1996-10-011-0/+31
| | | | | | | | Notes: svn path=/head/; revision=18616
* | Add FreeBSD modificationsBill Fenner1996-09-301-9/+38
|/ | | | | | | | - Move setuid(getuid()) much earlier - Add "SANE_PRECISION" time printing code Notes: svn path=/head/; revision=18583
* Virgin import of LBL traceroute version 1.3.2.vendor/traceroute/1.3.2Bill Fenner1996-09-3022-0/+6321
Obtained from: ftp://ftp.ee.lbl.gov/traceroute.tar.Z on 30-Sep-1996. Notes: svn path=/vendor/traceroute/dist/; revision=18579 svn path=/vendor/traceroute/1.3.2/; revision=18581; tag=vendor/traceroute/1.3.2