robert
83107b499f
To reserve space for 65536 bits, allocate
...
65536 / (sizeof(int) * CHAR_BITS) `int's instead of
65536 / (sizeof(int) * CHAR_BITS) bytes to avoid a possible
segmentation fault if ports above 16383 are specified via the
-p option on a platform with 4 byte wide ints.
Approved by: re (bmah)
Reported by: Marco Wertejuk <wertejuk@mwcis.com>
2003-05-09 09:11:27 +00:00
dillon
ccd5574cc6
Bow to the whining masses and change a union back into void *. Retain
...
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.
2003-01-13 00:33:17 +00:00
dillon
ddf9ef103e
Change struct file f_data to un_data, a union of the correct struct
...
pointer types, and remove a huge number of casts from code using it.
Change struct xfile xf_data to xun_data (ABI is still compatible).
If we need to add a #define for f_data and xf_data we can, but I don't
think it will be necessary. There are no operational changes in this
commit.
2003-01-12 01:37:13 +00:00
ru
b67068895d
mdoc(7) police: markup polishing.
...
Approved by: re
2002-11-26 17:33:37 +00:00
robert
1495d7e56f
Use a cast to `void *' before casting to a pointer to a structure
...
to stop GCC emitting warnings about increased alignment requirements
which broke the build for sparc64.
Approved by: des
2002-08-02 11:57:59 +00:00
des
1d14d5adc9
Don't depend on namespace pollution from <netinet/in_pcb.h>.
...
Submitted by: bde
2002-08-01 16:49:31 +00:00
des
7884f69d0c
Implement the -l and -c options, which I'd forgotten.
2002-08-01 11:02:30 +00:00
des
06dac20202
Rewrite sockstat(1) in C.
...
Sponsored by: DARPA, NAI Labs
2002-07-31 12:32:03 +00:00
des
4d6b787d2d
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
des
1c6c608da6
Drop maintainership of this, it serves no purpose.
2002-04-15 19:36:50 +00:00
ru
e8e5635e4a
Spell "FreeBSD" with "F" and "BSD" in uppercase.
2001-08-13 16:33:00 +00:00
ru
6b03fce48e
mdoc(7) police: fix markup.
2001-08-10 10:43:45 +00:00
des
26d4324d74
Allow the user to specify port ranges against which to match inet sockets.
...
Suggested by: roam
2001-08-07 19:59:52 +00:00
mjacob
e095d37b91
Fix 64 bit issues so that sockstat && fstat work correctly on alpha.
...
PR: 29231
Submitted by: pherman@frenchfries.net
MFC after: 2 weeks
2001-07-25 20:31:20 +00:00
ru
36f138439b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
ru
ef2dbc1fb0
beforeinstall -> SCRIPTS.
2001-04-07 11:21:35 +00:00
ru
89596e4538
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
des
3bd182ef54
Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.
2001-03-15 20:46:35 +00:00
des
d57c826a42
Add (and document) options for showing only listening or connected sockets.
2001-03-06 13:48:38 +00:00
ru
ffef081534
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
ru
e5a37f2e6f
mdoc(7) police: added missing .Os call.
2000-12-14 13:58:15 +00:00
ru
3b7dc88538
Spell the des's name correctly.
2000-11-14 13:19:26 +00:00
des
4c9cb1a066
Skip sockets with no SCB
2000-10-13 16:25:37 +00:00
des
80571cee96
Document the fact that sockstat now lists Unix domain sockets, and the new
...
command-line options for selecting what to display.
2000-10-07 14:11:43 +00:00
des
35a375ea90
Total rewrite. This was actually the first non-trivial Perl script I ever
...
wrote, and as such was not very pretty.
Changes that may cause problems for people who use sockstat in scripts:
- sockstat(8) now displays Unix domain sockets in addition to IPv4 and IPv6
- the last period in local and foreign addresses is changed to a colon to
make the port number easier to spot
- IPv4 and IPv6 sockets are listed separately (IPv4 first, then IPv6, then
Unix)
2000-10-07 14:10:37 +00:00
ru
cea09e03a4
Restore support for displaying raw IPv4 sockets and
...
correct the author's name. Were broken in rev 1.6.
Approved by: des
2000-08-30 13:24:01 +00:00
des
0164152861
Invoke netstat(1) and fstat(1) with full path.
2000-08-30 09:18:20 +00:00
charnier
4928e25e18
Do not dot terminate list of references
2000-03-26 14:56:52 +00:00
shin
45b25e4586
Prevent sockstat print out some empty entries related to IPv6.
...
Sockstat use netstat tcp/udp socket print, and fstat tcp/udp
socket print, but it just specify all of IPPROTO_IP and
IPPROTO_IPV6 sockets for fstat.
Now IPv6 socket also use raw socket, but only netstat don't print it,
so now they are printed as empty entries in sockstat output.
Approved by: jkh
2000-03-11 11:25:00 +00:00
sheldonh
49c4458c80
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
shin
a310d24367
Update sockstat to support INET6 socket printing.
...
Approved by: jkh
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Reviewed by: des
2000-02-26 02:56:16 +00:00
sheldonh
a86e7e27bb
Add xrefs to the {f,net,sock}stat.1 manpages. While I'm in there, fix
...
the sockstat.1 document title, which still remembers when sockstat was
called lsock.
Reviewed by: mpp
1999-09-06 13:14:24 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
des
71fd17e057
Use -finet option to netstat(1), and don't discard anything.
...
Don't truncate the protocol field.
These two changes conspire to make sockstat(1) show divert sockets.
Submitted by: ru
1999-07-06 19:12:31 +00:00
des
dfac2f01e2
Don't use STDOUT_TOP.
...
Submitted by: Christopher Masto <chris@netmonger.net>
1999-05-01 11:31:19 +00:00
des
3055212a71
Rename lsock(1) to sockstat(1).
...
Suggested by: Sheldon Hearn <sheldonh@iafrica.com>
Approved by: Peter Wemm <peter@netplex.com.au>
1999-04-15 13:40:43 +00:00