1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/contrib/traceroute
Patrick Kelsey 2f8c6c0a58 Fix userland tools that don't check the format of routing socket
messages before accessing message fields that may not be present,
removing dead/duplicate/misleading code along the way.

Document the message format for each routing socket message in
route.h.

Fix a bug in usr.bin/netstat introduced in r287351 that resulted in
pointer computation with essentially random 16-bit offsets and
dereferencing of the results.

Reviewed by:	ae
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D10330
2017-04-16 19:17:10 +00:00
..
as.c
as.h
CHANGES
FILES
findsaddr-socket.c Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
findsaddr.h
FREEBSD-upgrade
ifaddrlist.c
ifaddrlist.h
INSTALL
mean.awk
median.awk
README
rip_output.c
traceroute.8 The code starts with base + 1 as the first port. Fix to documentation 2015-05-31 12:18:30 +00:00
traceroute.c Unbreak traceroute on system built without CAPSICUM 2017-03-16 13:01:23 +00:00
traceroute.h
VERSION

@(#) $Id: README,v 1.9 2000/09/16 05:32:01 leres Exp $ (LBL)

TRACEROUTE 1.4
Lawrence Berkeley National Laboratory
Network Research Group
traceroute@ee.lbl.gov
ftp://ftp.ee.lbl.gov/traceroute.tar.gz

Traceroute is a system administrators utility to trace the route
ip packets from the current system take in getting to some
destination system.  See the comments at the front of the
program for a description of its use.

This program uses raw ip sockets and must be run as root (or installed
setuid to root).

A couple of awk programs to massage the traceroute output are
included.  "mean.awk" and "median.awk" compute the mean and median time
to each hop, respectively.  I've found that something like

    traceroute -q 7 foo.somewhere >t
    awk -f median.awk t | xgraph

can give you a quick picture of the bad spots on a long path (median is
usually a better noise filter than mean).

Problems, bugs, questions, desirable enhancements, source code
contributions, etc., should be sent to the email address
"traceroute@ee.lbl.gov".