aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sockstat
Commit message (Collapse)AuthorAgeFilesLines
* make sockstat not print wierd addresses on not connected unix domain socketsJohn-Mark Gurney2003-07-191-1/+5
| | | | | | | | Pointed out by: rwatson Reviewed by: peter Notes: svn path=/head/; revision=117772
* Finish the implementation of the -p switch so that itMaxime Henrion2003-06-071-0/+26
| | | | | | | | actually works. I have no idea why this wasn't finished and happened to try to use it. Notes: svn path=/head/; revision=115955
* To reserve space for 65536 bits, allocateRobert Drehmel2003-05-091-1/+1
| | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=114853
* Bow to the whining masses and change a union back into void *. RetainMatthew Dillon2003-01-131-2/+2
| | | | | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it. Notes: svn path=/head/; revision=109153
* Change struct file f_data to un_data, a union of the correct structMatthew Dillon2003-01-121-2/+2
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=109123
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-4/+4
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* Use a cast to `void *' before casting to a pointer to a structureRobert Drehmel2002-08-021-5/+8
| | | | | | | | | | to stop GCC emitting warnings about increased alignment requirements which broke the build for sparc64. Approved by: des Notes: svn path=/head/; revision=101220
* Don't depend on namespace pollution from <netinet/in_pcb.h>.Dag-Erling Smørgrav2002-08-011-0/+2
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=101163
* Implement the -l and -c options, which I'd forgotten.Dag-Erling Smørgrav2002-08-011-6/+17
| | | | Notes: svn path=/head/; revision=101144
* Rewrite sockstat(1) in C.Dag-Erling Smørgrav2002-07-314-257/+596
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101043
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-04-221-1/+1
| | | | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. Notes: svn path=/head/; revision=95258
* Drop maintainership of this, it serves no purpose.Dag-Erling Smørgrav2002-04-151-1/+0
| | | | Notes: svn path=/head/; revision=94793
* Spell "FreeBSD" with "F" and "BSD" in uppercase.Ruslan Ermilov2001-08-131-1/+1
| | | | Notes: svn path=/head/; revision=81588
* mdoc(7) police: fix markup.Ruslan Ermilov2001-08-101-9/+22
| | | | Notes: svn path=/head/; revision=81430
* Allow the user to specify port ranges against which to match inet sockets.Dag-Erling Smørgrav2001-08-072-3/+76
| | | | | | | Suggested by: roam Notes: svn path=/head/; revision=81259
* Fix 64 bit issues so that sockstat && fstat work correctly on alpha.Matt Jacob2001-07-251-1/+1
| | | | | | | | | PR: 29231 Submitted by: pherman@frenchfries.net MFC after: 2 weeks Notes: svn path=/head/; revision=80355
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* beforeinstall -> SCRIPTS.Ruslan Ermilov2001-04-071-4/+1
| | | | Notes: svn path=/head/; revision=75286
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74848
* Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.Dag-Erling Smørgrav2001-03-151-1/+1
| | | | Notes: svn path=/head/; revision=74312
* Add (and document) options for showing only listening or connected sockets.Dag-Erling Smørgrav2001-03-062-11/+39
| | | | Notes: svn path=/head/; revision=73880
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-2/+2
| | | | Notes: svn path=/head/; revision=71102
* mdoc(7) police: added missing .Os call.Ruslan Ermilov2000-12-141-0/+1
| | | | Notes: svn path=/head/; revision=70022
* Spell the des's name correctly.Ruslan Ermilov2000-11-141-1/+1
| | | | Notes: svn path=/head/; revision=68718
* Skip sockets with no SCBDag-Erling Smørgrav2000-10-131-0/+2
| | | | Notes: svn path=/head/; revision=67079
* Document the fact that sockstat now lists Unix domain sockets, and the newDag-Erling Smørgrav2000-10-071-3/+27
| | | | | | | command-line options for selecting what to display. Notes: svn path=/head/; revision=66790
* Total rewrite. This was actually the first non-trivial Perl script I everDag-Erling Smørgrav2000-10-071-26/+129
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=66789
* Restore support for displaying raw IPv4 sockets andRuslan Ermilov2000-08-301-2/+2
| | | | | | | | | correct the author's name. Were broken in rev 1.6. Approved by: des Notes: svn path=/head/; revision=65259
* Invoke netstat(1) and fstat(1) with full path.Dag-Erling Smørgrav2000-08-301-2/+2
| | | | Notes: svn path=/head/; revision=65249
* Do not dot terminate list of referencesPhilippe Charnier2000-03-261-1/+1
| | | | Notes: svn path=/head/; revision=58625
* Prevent sockstat print out some empty entries related to IPv6.Yoshinobu Inoue2000-03-111-2/+2
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=57905
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* Update sockstat to support INET6 socket printing.Yoshinobu Inoue2000-02-262-6/+10
| | | | | | | | | | Approved by: jkh Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Reviewed by: des Notes: svn path=/head/; revision=57494
* Add xrefs to the {f,net,sock}stat.1 manpages. While I'm in there, fixSheldon Hearn1999-09-061-1/+1
| | | | | | | | | | the sockstat.1 document title, which still remembers when sockstat was called lsock. Reviewed by: mpp Notes: svn path=/head/; revision=51015
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Use -finet option to netstat(1), and don't discard anything.Dag-Erling Smørgrav1999-07-062-11/+10
| | | | | | | | | | Don't truncate the protocol field. These two changes conspire to make sockstat(1) show divert sockets. Submitted by: ru Notes: svn path=/head/; revision=48644
* Don't use STDOUT_TOP.Dag-Erling Smørgrav1999-05-011-3/+3
| | | | | | | Submitted by: Christopher Masto <chris@netmonger.net> Notes: svn path=/head/; revision=46222
* Rename lsock(1) to sockstat(1).Dag-Erling Smørgrav1999-04-153-0/+146
Suggested by: Sheldon Hearn <sheldonh@iafrica.com> Approved by: Peter Wemm <peter@netplex.com.au> Notes: svn path=/head/; revision=45699