matt
83765a6e69
Don't count on kernel includes to exports user variables.
2002-05-13 05:13:23 +00:00
bjh21
f4c2a9f013
Use getnameinfo() to format link-layer addresses for netstat -r rather than
...
doing it ourselves and falling back to link_ntoa().
2001-10-06 18:56:49 +00:00
itojun
bc9b3f2aa8
snprintf length audit. from openbsd
2001-08-19 02:01:24 +00:00
assar
7aedc79d5e
add `-s' that prints port numbers symbolically but addresses numerically
2001-05-28 04:22:55 +00:00
itojun
ea6a7c4787
pedant changes for strcpy/sprintf.
2001-04-06 05:10:28 +00:00
enami
33ee74b742
Print hopcount too when -rv is given.
2001-03-08 03:47:04 +00:00
itojun
e79a9123a3
use u_quad_t for rtstat.
...
not sure if it really matters, but short (32K) looks way too small given
recent fat pipes connecting *BSD boxes, and our great uptime :-).
2001-02-21 05:45:11 +00:00
itojun
fee00b1a78
mark cloned routes with RTF_CLONED. present it with netstat -r by "c".
...
let static routes overwrite cloned routes, as cloned routes can come back again
if necessary. behavior same as freebsd/bsdi, code partially from bsdi42.
(NRL rt->rt_parent was not added)
should fix PR 11916 and maybe some other PRs with ARP behavior.
recompilation of usr.sbin/route6d is suggested.
2001-01-27 04:49:31 +00:00
matt
c3405770e4
Do the same IEEE1394 address hack in here.
2000-11-14 23:07:40 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
itojun
5872028b21
more stats. from kame
2000-07-06 12:40:19 +00:00
itojun
08de376ec3
fix default route determination for inet6.
2000-01-17 18:03:51 +00:00
itojun
ccef23e54a
mask addresses properly on netstat -inv.
...
From: Matt Thomas <matt@3am-software.com>
2000-01-17 17:54:56 +00:00
hubertf
e27fbcf4a2
Properly print the "B"(lackhole) flag (as documented :).
...
Patch submitted in PR 9190 by URA Hiroshi <ura@hiru.aoba.yokohama.jp>
2000-01-15 01:39:54 +00:00
sommerfeld
c657ebbc95
Pay attention to the netmask of routes to 0.0.0.0;
...
e.g., a route to 0.0.0.0/1 is *not* a default route.
Inspired by a patch by Rodney Grimes sent to the zebra list.
2000-01-07 04:49:11 +00:00
itojun
033763d6c9
per-interface statistics.
...
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)
1999-12-13 15:22:55 +00:00
soren
819a9c5fd3
Print Internet6 header properly without -f.
1999-11-27 02:19:34 +00:00
itojun
d8470360b1
more clarification to field width of netstat -rn -f inet6.
1999-11-24 08:45:43 +00:00
itojun
22758aaba3
use old WID_{DST,GW} value (field width for netstat -rn) for non-INET6
...
address families (see tech-net discussion).
1999-11-22 14:13:53 +00:00
is
cef52aa203
Add -L option. netstat -r -L behaves like 4.3BSD netstat -r, that is, it
...
does not show route table entries pointing to link level addresses (ARP
entries or IPv6 neighbour discovery entries).
1999-09-15 20:12:18 +00:00
itojun
f84fab5af8
sync with recent KAME.
...
- fix routing socket align issue on 64bit arch.
- avoid s6_addr{8,16,32}, which are nonstandard.
1999-09-03 04:26:31 +00:00
itojun
414ee1ddfb
make netstat IPv6-ready.
1999-07-01 18:40:35 +00:00
chopps
005cdfb516
don't use malloc for large sockaddr's, just name the union declared above
1999-04-02 20:13:40 +00:00
chopps
87af70d729
user err() not errx()
1999-04-01 23:12:30 +00:00
chopps
3357b52e9b
fix for sockaddr's that are bigger than standard sockaddr's (e.g., iso)
1999-04-01 08:14:11 +00:00
kml
783ac03fcf
Added a verbose flag for route display that will show
...
the various route metrics.
1999-01-15 19:06:25 +00:00
mrg
a112081f50
#ifndef SMALL changes. saves 30k on the sparc
1999-01-11 12:31:53 +00:00
pk
66bc493d73
Make a network number by shifting out host bits in octet units.
...
This is currently required still to get correct lookups in `/etc/networks'.
1998-12-05 13:14:04 +00:00
msaitoh
8240966355
fix invalid shift. colsed PR#5160.
1998-11-23 10:17:12 +00:00
mrg
3adcd350ed
put all the different struct sockaddr_xxx types into the union pt_u, to force the alignment to be correct for all of them.
1998-10-31 06:42:22 +00:00
mrg
efa1d2c3a5
- KNF
...
- use err(3)
- sprintf/strcpy -> snprintf/strncpy
- change route.c:domask() to take a size_t of the buffer passed.
1998-07-12 03:20:13 +00:00
mrg
2beab49a06
- 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:45:41 +00:00
kml
78c488bad7
Partial fix for PR kern/5435 -- changed netstat to use unsigned counters
...
instead of signed. The rest of the fix will have to wait for 64-bit counters.
1998-05-14 22:48:49 +00:00
kml
3c3dcf9966
Ensure that the 'L' lock flag for MTU is always displayed when present.
1998-05-14 20:55:51 +00:00
kml
9633603853
Added (and documented) a change to the route display, so that mtu values
...
which have been locked are indicated by an 'L' appended to the MTU value.
Locked routes have path mtu discovery turned off.
1997-10-28 22:38:42 +00:00
mrg
9395f04c8b
fix compile warnings on the sparc.
1997-10-20 10:32:06 +00:00
lukem
e55eeec2c5
fix up .Nm usage, getopt returns -1 not EOF
1997-10-19 05:49:56 +00:00
christos
38ec358de7
Make the first field 2 characters wider so that XXX.XXX.XXX.XXX/XX fits.
...
From Kimmo
1997-04-10 15:45:58 +00:00
christos
c3a7122e73
- netatalk additions
...
- printf format fixes
- minor prototype cleanups
1997-04-03 04:46:44 +00:00
thorpej
87ca1d62e0
Print Ethernet and FDDI addresses in the same format as ether_ntoa().
...
From Matt Thomas <matt@3am-software.com>
1997-03-26 01:49:44 +00:00
mycroft
19d55000f7
Get the byte-swapping right in netmask().
1997-03-18 03:40:10 +00:00
mellon
8040aaffba
ns_print: fix type conflict
1997-01-02 08:06:24 +00:00
mellon
9209b257a5
ns_print: undo bogus type conflict
1997-01-02 08:04:26 +00:00
mellon
d8671bd736
Lite2 Merge
1997-01-02 08:00:55 +00:00
thorpej
22afdc2c33
Update for the changes to struct ifnet. While I'm here, fix a couple
...
of long-standing bugs:
- Actually deal with the fact that the kernel ifnet list is
a TAILQ; it just happened to work before.
- Use kvm_openfiles() instead of kvm_open(). The code passed
arguments to kvm_open() as if it were kvm_openfiles(), but
apparently went unnoticed since the prototypes are the same.
Amusing bit: there were XXX's in the code which seemed to
apologize for a verbose libkvm, when it happened to be a
bug in netstat!
1996-05-07 02:55:00 +00:00
thorpej
67f6822225
New-style RCS ids.
1995-10-03 21:42:34 +00:00
thorpej
7df5d8b0ec
If set, show a route's mtu in the routing table display.
1995-08-10 06:24:52 +00:00
mycroft
01c15f41a0
Byte-swap correctly. Make some types 64-bit safe. Use INADDR_ANY rather
...
than an explicit 0.
1995-07-03 03:25:19 +00:00
jtc
ae0b9c2010
KERNEL -> _KERNEL
1995-03-28 17:18:59 +00:00
mycroft
d3877f2073
Clean up import.
1994-05-13 08:08:09 +00:00