aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/inet6.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Use uintmax_t to pass around 64-bit quantities, including to printf().David E. O'Brien2007-10-041-158/+159
| | | | | | | | Using uintmax_t is also robust to further extensions in both the C language and the bitwidth of kernel counters. Notes: svn path=/stable/6/; revision=172444
* MFC: Restore netstat -M functionality for most statistics on core dumps.John Baldwin2007-07-231-37/+38
| | | | | | | | | One change in this patch relative to the changes in HEAD is that the mroute statistics will still fallback to using libkvm on live kernels if the sysctl fails. Notes: svn path=/stable/6/; revision=171557
* MFC: 1.26Julian Elischer2006-07-261-1/+4
| | | | | | | Don't print an error if used on a kernel with no ipv6, just do nothing. Notes: svn path=/stable/6/; revision=160727
* Use the length modifier 'll' instead of 'q' to print long longs.Stefan Farfeleder2004-07-281-6/+6
| | | | Notes: svn path=/head/; revision=132799
* Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3).Philippe Charnier2004-07-261-5/+7
| | | | | | | | Use warnx() instead of warn() when error message is not of any interest. Add prototypes. Notes: svn path=/head/; revision=132671
* printed statistics about source address selection rules.Hajimu UMEMOTO2004-02-051-0/+25
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=125483
* stops program if kvm_read fails.Hajimu UMEMOTO2004-02-051-2/+3
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=125482
* o Typo/Grammar fixesMike Makonnen2003-01-141-9/+11
| | | | | | | | | | | o Added mini-function to correctly handle singular/plural of words ending in 'ly' Approved by: markm (mentor) Not objected to by: -audit Notes: svn path=/head/; revision=109234
* Warns cleanups for netstat:David Malone2002-09-051-9/+8
| | | | | | | | | | | | | | 1) Include arpa/inet.h for ntohs. 2) Constness fixes. 3) Fix shadowing except for "sin" which shouldn't be in scope. 4) Remove register keyword. 5) Add missing initialsers to user defined structs. 5) Make prototype of netname6 globally visable. 6) Use right macros for printing syncache stats (even though entrie isn't a word). Notes: svn path=/head/; revision=102975
* Cast to kill warnings. De-register.Mark Murray2002-04-281-3/+3
| | | | Notes: svn path=/head/; revision=95637
* Deprecate the -l option in favour of more natural -W.Ruslan Ermilov2001-09-071-2/+2
| | | | | | | | | | | The compatibility glue is still provided. (This change is not yet reflected in the manpage, nor in usage(). This will be fixed at a later time today, with the general manpage cleanup commit.) Notes: svn path=/head/; revision=83200
* - create an entry of IPV6CTL_STATS sysctl.Hajimu UMEMOTO2001-06-281-5/+19
| | | | | | | | | | | | - fix the problem that netstat doesn't show raw6 and icmp6 pcblist. - make netstat use sysctl to retreive stats of ipv6 and icmpv6 instead of kread. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=78931
* - Avoid hardcoded constant on icmp6 in/out histogram printingMunechika SUMIKAWA2001-06-211-4/+8
| | | | | | | | | | - Icmp6 histogram update for inverse neighbor solicit/advert. Obtained from: KAME MFC after: 2 weeks Notes: svn path=/head/; revision=78540
* remove warningsAssar Westerlund2001-06-151-4/+4
| | | | | | | | remove superfluous declarations make things more consistent Notes: svn path=/head/; revision=78316
* remove K&R supportAssar Westerlund2001-06-151-25/+10
| | | | Notes: svn path=/head/; revision=78314
* revert removal of warning and K&R supportAssar Westerlund2001-06-151-8/+23
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=78309
* remove most of the warningsAssar Westerlund2001-06-151-23/+8
| | | | Notes: svn path=/head/; revision=78245
* add the option -S for printing port numbers symbolically but addressesAssar Westerlund2001-06-151-4/+4
| | | | | | | numerically. clean up the CFLAGS in Makefile. Notes: svn path=/head/; revision=78238
* Sync with recent KAME.Hajimu UMEMOTO2001-06-111-0/+55
| | | | | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks Notes: svn path=/head/; revision=78064
* Correct some typos.Dima Dorfman2001-06-011-3/+3
| | | | | | | | PR: 27251 Submitted by: Pekka Savola <pekkas@netcore.fi> Notes: svn path=/head/; revision=77565
* Add an example of a novel technique to the IPv6 code. This technique seemsPoul-Henning Kamp2001-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. Notes: svn path=/head/; revision=74453
* MAXHOSTNAMELEN includes space for a NUL.Brian Somers2001-03-141-1/+1
| | | | | | | | | Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit Notes: svn path=/head/; revision=74262
* To make compilable without -DINET6.Hajimu UMEMOTO2000-08-071-0/+2
| | | | | | | | PR: bin/20407 Submitted by: Patrick Bihan-Faou <patrick@mindstep.com> Notes: svn path=/head/; revision=64342
* remove m_pulldown related statistics, it is not for production systemJun-ichiro itojun Hagino2000-07-121-32/+0
| | | | | | | (it belongs to kame experiment). Notes: svn path=/head/; revision=63022
* sync with latest kame netstat. basically, more statisticsJun-ichiro itojun Hagino2000-07-041-115/+241
| | | | Notes: svn path=/head/; revision=62584
* -permit protocol specific statistics at iflag,Yoshinobu Inoue2000-01-071-1/+1
| | | | | | | | | | | | 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> Notes: svn path=/head/; revision=55533
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.Yoshinobu Inoue1999-12-281-11/+2
| | | | | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55163
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,Yoshinobu Inoue1999-12-071-0/+962
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 Notes: svn path=/head/; revision=54263