summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
AgeCommit message (Collapse)Author
2014-04-17Sync show.c with the route version. Make the two files more similar butClaudio Jeker
still not identical. OK sthen@ mpi@ jca@
2014-02-13use strtonum. ok krwTed Unangst
2014-01-25Fix printing of icps_toofreq unlike IPv6 the IPv4 value is just a u_long.Claudio Jeker
Found by csszep (at) gmail.
2014-01-23hardware cecksummed counters -> software checksummed countersHenning Brauer
2014-01-19Report the number of dropped ICMP error because the rate limit got exceeded.Claudio Jeker
OK benno@ deraadt@
2014-01-10ddpcb and unixsw symbols are no longer used with kvm_readPhilip Guenther
ok deraadt@
2013-12-25final circleq to tailq fix. restore the previous pointer check by readingTed Unangst
the previous value again and checking prev.next is still next. maybe ok guenther
2013-12-24more fixing after circleq conversion. a better fix to check the prevTed Unangst
pointer is forthcoming.
2013-12-23fix circleq tailq conversionTed Unangst
2013-12-20Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQKenneth R Westerback
in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
2013-11-25netstat -Ar leaked some kernel pointers to unprivileged users. UseAlexander Bluhm
hideroot to show them only to root. OK deraadt@
2013-11-21split kernel parts of the if.h into a separate header file if_var.hMike Belopuhov
which allows us to modify ifnet structure in a relatively safe way; discussed with deraadt, ok mpi
2013-11-20unsigned char cast for isdigit, dealing with argvTheo de Raadt
ok benno
2013-11-13handle lack of protoTheo de Raadt
2013-11-09kinfo_file returns the socket buffer counts in uint64_ts, so we need toPhilip Guenther
update the printf format for them. While here, delete a now unused variable. problem pointed out by Scott McEachern (scott (at) blackstaff.ca)
2013-10-28use %d instea of %iTheo de Raadt
2013-10-24These two programs got fooled by the KAME/NRL split and need type repair.Theo de Raadt
They do not indicate a problem with the reduction of namespace export, but got suckered into the 1999 plan. ok benno
2013-10-22- add UNIX-domain socket info to struct kinfo_file2Philip Guenther
- convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
2013-09-29Prepare netstat for printing 64 bit route expire time.Alexander Bluhm
OK claudio@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
2013-04-23create a method to print the unp_ino (ino_t) properly once it becomesTheo de Raadt
bigger
2013-04-18improve time_t handling here, tooTheo de Raadt
2013-04-18improve time_t printing; ok claudioTheo de Raadt
2013-04-16handle long long tv_sec; ok millertTheo de Raadt
2013-03-20As non-root, whenever netstat is about to print out a kernel pointer...Theo de Raadt
print 0x0 instead. Hides a lot stuff people don't need to see.
2013-02-05netstat -vP also shows the new struct sockbuf field sb_flagsintr.Alexander Bluhm
OK markus@ claudio@
2013-01-16sys/mbuf.h not neededTheo de Raadt
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-12-04remove some unnecessary sys/mbuf.h inclusionsTheo de Raadt
2012-08-26oops, i added a stray character. spotted by jmcTed Unangst
2012-08-22remove unneccessary .Pp;Jason McIntyre
2012-08-22i missed usage and the manpage. prod by jmcTed Unangst
2012-08-22-h flag to print human numbers in conjunction with -w -bTed Unangst
2012-07-13Label node allocation failures as such in netstat -W output.Stefan Sperling
"Input packets dropped" isn't really a good description of what happened when we failed to allocate a new node in the net80211 stack. This allocation doesn't happen for every packet, only for new nodes that appear in reach of the antenna. ok net80211 expert department (we have vacancies, apply within)
2012-03-17remove IP_JUMBO, SO_JUMBO, and RTF_JUMBO.David Gwynne
no objection from mcbride@ krw@ markus@ deraadt@
2011-11-01Do some cleanup and improve the manpage. From Andreas Bartelt; ok henning, jmcMike Belopuhov
2011-11-01Fixup previous: don't forget to actually get the current rtable;Mike Belopuhov
reminded by Andreas Bartelt.
2011-11-01List sockets existing only in the specified or current routing domain.Mike Belopuhov
Prompted by the mail from Andreas Bartelt, tested by Andreas and me. ok henning
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-08-19as with other list types, column lists generally do not need a Pp/-compactJason McIntyre
construct; this also sidesteps what seems to be a problem with mandoc, in that "-column -compact" seems to mess up the formatting. thus these pages should now have their lists formatted nicely (i.e. correctly aligned and with indent applied); as a side note, the fact that headers are not properly marked up is another issue which will be addressed separately (a mandoc fix is needed, i think). i have fudged a few of these to mark up properly, since the workaround does make sense for some pages. as another side note, i haven;t fixed man7, as i need to prepare a separate diff for kristaps and ingo.
2011-07-09remove more atalk bitsTheo de Raadt
2011-07-09rmove rotten netatalk bitsHenning Brauer
2011-07-05Add so_idletv to netstat -vP pcb-address output.Alexander Bluhm
ok mikeb@
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2011-03-18print icps_bmcastecho as "XX echo requests to broadcast/multicast rejected".Stuart Henderson
from Christiano Haesbert with a small tweak to wording
2011-03-15Add a -B flag to netstat which displays buffer sizes for TCP sockets.Joel Sing
With feedback from bluhm@ ok bluhm@ sthen@
2011-03-05remove a stray character (editing accident) i introduced a year ago;Ingo Schwarze
while here, improve the grammar of the preceding sentence; ok jmc@
2011-03-04kill is_rx_elem_unknown.Federico G. Schwindt
damien@ ok. ports checked by sthen@.
2011-03-02Add the socket splicing fields of struct socket to netstat -vPAlexander Bluhm
output for debugging. ok markus@, claudio@
2011-01-09have netstat -w default to the first egress interface, which is usually moreTed Unangst
interesting than whatever happens to be the last interface. ok deraadt nicm