summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* Correct some typos.dd2001-06-011-3/+3
| | | | | PR: 27251 Submitted by: Pekka Savola <pekkas@netcore.fi>
* Restore printing of routes cloned from a RTF_CLONING parentru2001-05-072-9/+10
| | | | | | | | (e.g., ARP table entries) with the default routing display. PR: bin/26970 Reviewed by: wollman MFC after: 3 days
* Add missing break when printing IPv6 multicast addresses.fenner2001-04-261-1/+2
| | | | | Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type a multicast sockaddr_dl is.
* Fix typo s/thissystem/this system/jesper2001-04-161-1/+1
| | | | Submitted by: Stephen <sdk@shell.yuck.net>
* Don't core dump when given "-i -a". Problem caused by a mistakenphk2001-03-301-1/+2
| | | | | | | dereference of a kernel-pointer in userland. PR: 26168 Submitted by: Peter Pentchev <roam@orbitel.bg>
* Add an example of a novel technique to the IPv6 code. This technique seemsphk2001-03-191-1/+2
| | | | | | | to have been developed after the IPv6 code was written, it's called "checking for error returns". Now netstat at least doesnt't go beserk in jails.
* s/protocol-cloned/cloned/ I have missed in 1.24 -> 1.25.ru2001-03-181-1/+1
|
* Add a -W flag that tells netstat not to truncate addresses even if they aredes2001-03-154-32/+68
| | | | | | | | too long for the column they're printed in. Move variable definitions out of netstat.h and into main.c. Clean up some warnings.
* net/route.c:ru2001-03-152-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A route generated from an RTF_CLONING route had the RTF_WASCLONED flag set but did not have a reference to the parent route, as documented in the rtentry(9) manpage. This prevented such routes from being deleted when their parent route is deleted. Now, for example, if you delete an IP address from a network interface, all ARP entries that were cloned from this interface route are flushed. This also has an impact on netstat(1) output. Previously, dynamically created ARP cache entries (RTF_STATIC flag is unset) were displayed as part of the routing table display (-r). Now, they are only printed if the -a option is given. netinet/in.c, netinet/in_rmx.c: When address is removed from an interface, also delete all routes that point to this interface and address. Previously, for example, if you changed the address on an interface, outgoing IP datagrams might still use the old address. The only solution was to delete and re-add some routes. (The problem is easily observed with the route(8) command.) Note, that if the socket was already bound to the local address before this address is removed, new datagrams generated from this socket will still be sent from the old address. PR: kern/20785, kern/21914 Reviewed by: wollman (the idea)
* MAXHOSTNAMELEN includes space for a NUL.brian2001-03-146-42/+13
| | | | | | Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit
* Count and show incoming UDP datagrams with no checksum.ru2001-03-131-0/+1
|
* When displaying interface statistics with -i show a '-' for anyjoe2001-03-041-15/+64
| | | | values that aren't updated for a particular network-layer address.
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+2
|
* Use macro API to <sys/queue.h>phk2000-12-303-18/+17
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-11/+11
|
* Now that the amount of (pseudo) interfaces is growing with IPv6,guido2000-10-301-22/+30
| | | | get rid of stupid upperbound on the amount of interfaces (was 8).
* Augment the 'ifaddr' structure with a 'struct if_data' to keepjoe2000-10-191-9/+47
| | | | | | | | | | | statistics on a per network address basis. Teach the IPv4 and IPv6 input/output routines to log packets/bytes against the network address connected to the flow. Teach netstat to display the per-address stats for IP protocols when 'netstat -i' is evoked, instead of displaying the per-interface stats.
* Change the "in use" percentage metric to actually display a realbmilekic2000-10-151-9/+14
| | | | "in use" percentage. In other words, show how much of mb_map is in use.
* Fixed the printing of header for IPv4 routing table without -l option.ru2000-09-181-1/+1
| | | | Broken in rev 1.44.
* Replace the mbuf external reference counting code with somethingdwmalone2000-08-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that should be better. The old code counted references to mbuf clusters by using the offset of the cluster from the start of memory allocated for mbufs and clusters as an index into an array of chars, which did the reference counting. If the external storage was not a cluster then reference counting had to be done by the code using that external storage. NetBSD's system of linked lists of mbufs was cosidered, but Alfred felt it would have locking issues when the kernel was made more SMP friendly. The system implimented uses a pool of unions to track external storage. The union contains an int for counting the references and a pointer for forming a free list. The reference counts are incremented and decremented atomically and so should be SMP friendly. This system can track reference counts for any sort of external storage. Access to the reference counting stuff is now through macros defined in mbuf.h, so it should be easier to make changes to the system in the future. The possibility of storing the reference count in one of the referencing mbufs was considered, but was rejected 'cos it would often leave extra mbufs allocated. Storing the reference count in the cluster was also considered, but because the external storage may not be a cluster this isn't an option. The size of the pool of reference counters is available in the stats provided by "netstat -m". PR: 19866 Submitted by: Bosko Milekic <bmilekic@dsuper.net> Reviewed by: alfred (glanced at by others on -net)
* To make compilable without -DINET6.ume2000-08-072-0/+4
| | | | | PR: bin/20407 Submitted by: Patrick Bihan-Faou <patrick@mindstep.com>
* Do not display icmp(4) sockets as non-existent bridge(4) sockets.ru2000-08-031-2/+2
|
* Fix bug: "netstat -si" prints interface information, but the headerjdp2000-07-281-1/+1
| | | | | | | line is missing. This apparently was broken in revision 1.31 of "if.c". Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Make mbstat.m_mtypes seperate and viewable via sysctl, alsoalfred2000-07-151-25/+49
| | | | | | | expand the size from short to ulong Submitted by: Ian Dowse <iedowse@maths.tcd.ie> PR: kern/19809
* remove m_pulldown related statistics, it is not for production systemitojun2000-07-121-32/+0
| | | | (it belongs to kame experiment).
* add pfkeystat. sync with kameitojun2000-07-052-0/+27
|
* sync with latest kame netstat. basically, more statisticsitojun2000-07-048-299/+646
|
* Use Garrett's new (clearer) names.markm2000-04-231-7/+7
|
* Add '-L' option to usage().guido2000-03-201-1/+1
|
* Don't suppress Flags and Refs info for IPv4 entries.shin2000-03-141-2/+2
| | | | | (They need to be suppressed by default for IPv6 entries to keep the column size of each entries in 80.)
* Add a flag to the usage display.shin2000-03-111-2/+2
| | | | | | | | | There was a missing description for a new flags to netstat. I already added the fix to netstat man, but usage() change is also necessary. Specified by: Ben Smithurst <ben@scientia.demon.co.uk> Approved by: jkh
* Add "-l" option description.shin2000-03-111-1/+3
| | | | | Noticed the necessity by Ben Smithurst <ben@scientia.demon.co.uk> message on freebsd-current.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* IPv6 multicast routing.shin2000-01-285-10/+237
| | | | | | | | | | | | | kernel IPv6 multicast routing support. pim6 dense mode daemon pim6 sparse mode daemon netstat support of IPv6 multicast routing statistics Merging to the current and testing with other existing multicast routers is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances the base code in KAME distribution. Make world check and kernel build check was also successful.
* Instead of reporting all 0.0.0.0 as ``default'' only reportrgrimes2000-01-071-2/+5
| | | | | | a true default of 0.0.0.0/0 as default. Reviewed by: wollman
* -permit protocol specific statistics at iflag,shin2000-01-073-9/+16
| | | | | | | | | only when either of sflag and "-f inet6" is specified. -fix the indentation of default output Specified by: Stephen McKay <syssgm@detir.qld.gov.au> Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
* libipsec and IPsec related apps. (and some KAME related man pages)shin2000-01-061-1/+1
| | | | | Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Print mac addresses in standard byte:byte format rather thanjkh2000-01-031-1/+1
| | | | | | | byte.byte. This makes it consistent with our other utilities like arp(8) and ifconfig(8). Submitted by: Paul Vixie <paul@vix.com>
* Add display of maximum allowed mbuf count to match mbuf cluster count.msmith1999-12-281-3/+11
| | | | Submitted by: Bosko Milekic <bmilekic@dsuper.net>
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-284-47/+12
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* also, changed prototype of pr_rthdr(), as my previous fixshin1999-12-211-1/+1
| | | | for netstat/route.c
* Added missing declaration for argment specification at pr_rthdr(),shin1999-12-211-3/+4
| | | | | | caused by my previous patch, sorry. Also, changed its var name from 'af' to 'wid_af', to avoid confusion with global var 'af'.
* define WID_DST6 and WID_GW6 and use them only for IPv6, to keep IPv4 relatedshin1999-12-211-12/+32
| | | | | | | | | | | | information in 80 columns. TODO: IPv6 related information is not likely to be kept in 80 columns, anyway. Some more print modes could be added, but what is the priority between those modes? -print out all information even if they don't fit into 80 columns -strip off some information to fit them into 80 columns Reviewed by: markm
* Enable INET6 by default.shin1999-12-151-1/+1
| | | | This should be OK on non INET6 enabled kernel.
* Add new option, -L that will listen the various listen queue lengths.guido1999-12-134-32/+68
| | | | | Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Clive Lin <clive@GnatS.CirX.ORG>
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-078-107/+1649
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Fix the output of 'netstat -I de0 1' for the alpha. Fix a bunch ofdfr1999-11-091-9/+10
| | | | warnings while I'm here.
* uncomment FILES section (it look reasonable here)phantom1999-10-301-13/+23
| | | | mdoc(7)'fy
* Put include <netgraph.h> back in - problem was due to a cvsup mess ondillon1999-10-241-0/+1
| | | | | freefall. There may also be a real problem w/ buildworld but the fix would go somewhere else, not here.
OpenPOWER on IntegriCloud