Commit Graph

46 Commits

Author SHA1 Message Date
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
cgd ea7e0c1cca kill lots of off_t's. 1994-04-01 09:18:06 +00:00
cgd 1e6c1e0ef2 clean up, for off_t... ugliest 'cleaning' possible, i think... 1994-03-28 10:29:31 +00:00
cgd 5dbdc683e6 feedback on the last, from sklower 1994-03-07 09:19:56 +00:00
cgd a317cb02e3 print netmask properly 1994-03-06 09:45:24 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
paul f129a8ba77 Included Havard Eidnes' latest changes. 1993-07-11 13:54:14 +00:00
cgd fb8ddd443e fix from David Burren <davidb@otto.bf.rmit.oz.au> to print address families
more nicely, and to print host names when showing routes w/o -n.
1993-05-18 07:15:59 +00:00
mycroft f5d9fe2b2c Fix typo. 1993-05-01 16:25:04 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00