freebsd-nq/usr.sbin/traceroute
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
..
gnuc.h Bring in LBL traceroute, which has the '-g' option. This is a bugfixed and 1996-03-13 08:04:29 +00:00
Makefile Fixes from NetBSD: 1996-08-17 10:37:28 +00:00
mean.awk BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
median.awk BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
README Bring in LBL traceroute, which has the '-g' option. This is a bugfixed and 1996-03-13 08:04:29 +00:00
traceroute.8 Bring in LBL traceroute, which has the '-g' option. This is a bugfixed and 1996-03-13 08:04:29 +00:00
traceroute.c Change strcpy() to strncpy() in several places, and give gethostname() 1996-09-10 00:50:13 +00:00

@(#) $Header: README,v 1.6 95/08/27 16:58:04 leres Exp $ (LBL)

TRACEROUTE 1.2
Lawrence Berkeley National Laboratory
Network Research Group
traceroute@ee.lbl.gov
ftp://ftp.ee.lbl.gov/traceroute-*.tar.Z

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 | graph

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".