Commit Graph

19 Commits

Author SHA1 Message Date
thorpej 5db2537ade Fix missing `)' in the sideways view of interfaces (i.e. netstat -w 1).
Bug pointed out by Chris G. Demetriou.
1996-06-07 21:43:26 +00:00
cgd 207dfda94d bump MAXIF (the maximum number of interfaces for which information is kept,
for 'netstat -w <delay>') to 100, from 10.  10 was definitely not sufficient
for many hosts; 100 should be for most if not all.  This code really should
dynamically allocate the information structures, based on the number of
interfaces in the kernel, account for interfaces that are added or removed,
etc., but given its current structure that would require substantial changes.
1996-06-04 20:22:23 +00:00
cgd 525c9d6e37 if doing 'netstat -I <intf> -w <delay>', and netstat can't find an
interface of the given name, print an error message and exit.
This whole section of code needs to be re-thought, if interfaces
can be dynamically added or removed.
1996-06-04 20:09:03 +00:00
thorpej 527565ac15 Kill a couple of unnecessary calls to strlen(). 1996-05-07 05:26:02 +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
jtc 3384b51b0b Implement change done in revision 1.12 (for PR #1473 & duplicates) in a
slightly different way.  This widens the Address field instead of the
Ipkts field because Address is the one that may be too big.
1995-10-17 07:17:04 +00:00
thorpej 67f6822225 New-style RCS ids. 1995-10-03 21:42:34 +00:00
jtc 4d8e53d69f Change formatting so that columns line up; PR #1473 + several duplicates 1995-09-28 06:22:54 +00:00
mycroft 9086ad07b9 Remove an extra htonl(). 1995-07-03 03:16:57 +00:00
mycroft 81c2958581 Update to match kernel changes. 1995-06-12 03:03:07 +00:00
mycroft 196ca74efe Align link address under `Address' header. 1994-09-17 00:14:20 +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
deraadt 2a6abdae04 netname() takes a struct in_addr, not an int. Breaks on sparc.
fix from Chuck Cranor <chuck@maria.wustl.edu>
1994-03-03 22:03:33 +00:00
cgd f087cc1d05 fix to print netstat unit number right; from Greenman 1994-02-22 04:19:37 +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 e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00