Commit Graph

67 Commits

Author SHA1 Message Date
neil 36139c4647 errors not generated 'cuz old message was icmp -> [EWW!]
errors not generated because old message was icmp
1996-12-09 12:48:37 +00:00
thorpej 2ea1f6b673 Add the `toolong' count to the IP stats display. 1996-10-25 07:41:35 +00:00
explorer 3f3e868348 use %lu, not %u. This covers more than my original %d -> %u change... 1996-10-08 01:18:10 +00:00
explorer 3d7986bab5 Netstat -s should use %u for u_long parameters... Closes bin/2817 by me 1996-10-07 18:42:25 +00:00
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
mycroft 445ad1968f Make this work again. 1996-05-24 11:57:16 +00:00
mycroft 0b70b24514 Avoid spewing if there is no MFC. 1996-05-11 13:51:27 +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
mycroft d4b276c3d5 Update to match kernel. 1996-01-31 04:01:48 +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
jtc 519b2df4b4 iostat is in section 8; PR #1533 1995-09-27 19:43:28 +00:00
jtc 8ba230d554 vmstat is in section 8; PR #1532 1995-09-27 19:20:24 +00:00
mycroft d7b28f05aa Garbage collect mbuf types. 1995-08-17 03:24:54 +00:00
mycroft 9094d0cb63 Garbage collect mbuf types. 1995-08-17 03:23:40 +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
mycroft 9086ad07b9 Remove an extra htonl(). 1995-07-03 03:16:57 +00:00
cgd df0183d43f update for new network structures 1995-06-19 00:13:05 +00:00
mycroft ee4364cc64 Format the statistics output more like the other protocols. 1995-06-12 03:49:45 +00:00
mycroft 81c2958581 Update to match kernel changes. 1995-06-12 03:03:07 +00:00
cgd 2ef674b932 print out number of malformed fragments dropped 1995-05-14 08:20:16 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
cgd 43f1b4beca a couple of these need <sys/queue.h> 1994-12-24 17:21:51 +00:00
deraadt 841f975d13 #include <kvm.h> later 1994-11-02 09:20:33 +00:00
mycroft 4f96184b10 Re-enable some ugly ISO code. 1994-10-06 16:30:55 +00:00
mycroft 196ca74efe Align link address under `Address' header. 1994-09-17 00:14:20 +00:00
jtc 1d1682d63c vmunix -> netbsd (PR #375) 1994-08-06 06:11:03 +00:00
deraadt e5c0834b50 do not need -I/sys 1994-08-03 20:34:13 +00:00
pk 1eacf67a6e Use ${DESTDIR}/sys in CFLAGS. 1994-08-02 09:35:50 +00:00
brezak 7cb1ad939d Report wrong interface stats 1994-06-09 16:08:46 +00:00
mycroft 69ae161fd9 Clean up deleted files. 1994-05-13 08:08:24 +00:00
mycroft d3877f2073 Clean up import. 1994-05-13 08:08:09 +00:00
mycroft 6ca69ffc0e Initial revision 1994-05-13 08:06:36 +00:00
cgd ea7e0c1cca kill lots of off_t's. 1994-04-01 09:18:06 +00:00
cgd f0a32f8da2 there will be no more /vmunix! from Mark Weaver. 1994-04-01 08:27:29 +00:00
cgd 1e6c1e0ef2 clean up, for off_t... ugliest 'cleaning' possible, i think... 1994-03-28 10:29:31 +00:00
glass 5bee302b77 moved useful contents of netiso/tp_astring.c down 1994-03-26 04:08:45 +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
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
jtc 281c9594a0 vmunix -> netbsd 1994-02-03 17:41:21 +00:00
cgd da1d84230b needs -lkvm, not -lutil 1994-01-28 00:48:33 +00:00
mycroft 231463b415 Don't print an extra character after a Unix domain socket name. 1994-01-11 23:27:10 +00:00
brezak 4b860495c5 Incorporate changes for IP mcast and IGMP from cmaeda@cs.washington.edu. 1994-01-11 19:42:48 +00:00