Commit Graph

140 Commits

Author SHA1 Message Date
thorpej
2b9d9a9499 Make this compile on the Alpha again. 1999-12-16 00:58:17 +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
tron
b11e523694 Define "_KERNEL" not "KERNEL" before including "netinet6/ip6_mroute.h". 1999-12-02 14:31:22 +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
bouyer
f7e8e4aebd Change printf formats for 64bit counters. 1999-11-19 10:44:33 +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
is
4d1abcb145 Netstat knows about "-f inet6". 1999-09-15 19:57:02 +00:00
dbj
e1c216bcdf RTF_PROTO1 is indicated by the flag '1' and RTF_PROTO2 is indicated by the flag '2',
not the other way around
1999-09-12 02:33:43 +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
cgd
f33ac29caa not all kvm_getfiles() errors are "out of memory." for instance,
some of them are caused by the kvm_getfiles() implementation being
TOTALLY BROKEN for dead kernels.  Print out the KVM descriptor's
error so that error causes are more easily diagnosed.
1999-08-19 06:13:09 +00:00
itojun
5413fa8362 do not include netinet/in6_systm.h, which has been empty for a while. 1999-07-30 10:31:22 +00:00
thorpej
00fb13f649 Revert previous, as it merely worked around a recent bug in make(1) which
is now fixed.
1999-07-12 18:17:56 +00:00
itojun
e56c252759 make sure to use files in ${.CURDIR} before ${.CURDIR}/../../sys/netiso.
(namely iso.c)
1999-07-12 17:53:42 +00:00
itojun
5d56439d90 merge SRCS into one. 1999-07-12 17:48:45 +00:00
itojun
26c3d764fd add NetBSD RCS ID. 1999-07-06 13:14:54 +00:00
itojun
414ee1ddfb make netstat IPv6-ready. 1999-07-01 18:40:35 +00:00
thorpej
c11fe1ae79 Print SYN,ACK retransmission statistics. 1999-04-29 03:58:27 +00:00
hubertf
a8aaa73992 Remove duplicated if() statementA.
This fixes PR 7308 by Feico Dillema <feico@pasta.cs.uit.no>
1999-04-02 22:45:45 +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
thorpej
ed8849cd5a Define __POOL_EXPOSE to get at the guts of the pool descriptor. 1999-03-31 23:25:46 +00:00
garbled
9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
mycroft
58e1f7b9b0 Make the damned columns line up. 1999-03-14 22:28:05 +00:00
kristerw
010cbdf92e There is no -h flag. From OpenBSD. 1999-03-14 18:30:04 +00:00
sommerfe
b36297112e fix PR7057: division by zero if no mbufs allocated
fix PR7059 (partial): mbuf cluster counts were based on counters which
are no longer maintained.
(full fix will involve renaming the now-unused fields in mclstat in mbuf.h)
1999-02-27 17:37:24 +00:00
lukem
2a6a3d1a76 rework so that -A -n' won't truncate the ipaddr.port' fields, by displaying
an abbreviated state column in that case (to fit in 80 columns)
1999-02-18 07:42:12 +00:00
explorer
6817ae8cab fix dumping of pcbs 1999-02-08 11:34:36 +00:00
lukem
266beeb0be remove sentence consistenting solely of "When" 1999-02-02 13:35:56 +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
abs
e516980de2 Apply (slightly modified) patch from 5543 to fix -s behaviour for netatalk. 1999-01-06 05:57:29 +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
ross
f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
sommerfe
aecb58fd13 Fix bogon in length argument to snprintf when formatting port number 1998-07-20 21:03:37 +00:00
lukem
f09ed79388 use AF_LOCAL instead of AF_UNIX. support -f local as synonym for -f unix 1998-07-18 05:04:10 +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
80efe80bc9 - change setgid kmem programs (that lend themselves to this) so setegid(getgid())
and the top, and then set the effective gid back to kmem around the call to
  kvm_openfiles().  this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
  kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +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
thorpej
66012e9fca Add an option to dump the contents of a PCB at the specified address, and
implement this for TCP.
1998-06-03 02:41:10 +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
matt
c3ef9d7317 Add support for printing fast forwarded packets. 1998-04-29 21:39:38 +00:00
kml
9433195784 Add support for a '-b' option to provide byte counts in and out,
instead of just packet counts.  On the byte screens, errors and
collisions are not shown, since they are more packet count related.
1998-03-19 02:42:57 +00:00
frueauf
feff15ad4a s/_offsetof/offsetof and include stddef.h to reflect recent
change in sys/netiso/iso.h.
1998-01-29 09:11:21 +00:00
lukem
11cfadcaa1 if INP_ANONPORT is set in the pcb, don't getservbyport the local port,
as the service name is irrelevent. from freebsd
1998-01-07 22:55:07 +00:00