Commit Graph

29 Commits

Author SHA1 Message Date
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