summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-251-7/+16
|\
| * MFC r287284:tuexen2016-01-161-7/+16
| | | | | | | | Use the userland exported states and handle them completely.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-131-41/+0
|\ \ | |/
| * Unbreak stable/10 buildworlds on arm/arm, mips/mips, mips/mips64, mips/mipsel,ngie2016-01-101-41/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mips/mipsn32, powerpc/powerpc, powerpc/powerpc64, sparc64/sparc64 with gcc after r293307 (some of the BURN_BRIDGES code) MFC after: 3 days Pointyhat to: markj Sponsored by: EMC / Isilon Storage Division MFC r279017: r279017 (by glebius): Burn bridges to FreeBSD 7.x IGMP stats.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-0711-276/+134
|\ \ | |/
| * MFC: 292394gnn2016-01-072-14/+21
| | | | | | | | | | | | | | | | Switch the IPsec related statistics to using the built in sysctl variable set rather than reading from kernel memory. This also makes the -z (zero) flag work correctly Sponsored by: Rubicon Communications, LLC (Netgate)
| * MFC r287649:markj2016-01-0710-262/+113
| | | | | | | | | | Use a common subroutine to fetch and zero protocol stats instead of duplicating roughly similar code for each protocol.
| * Fix mis-merge in r291816, nl_defs.h not used here.bdrewery2015-12-041-1/+1
| |
| * MFC r291330:bdrewery2015-12-041-1/+1
| | | | | | | | Replace DPSRCS that work fine in SRCS.
* | Revert "Backport r292394 while it's not on stable/10"Renato Botelho2015-12-182-24/+14
| | | | | | | | This reverts commit 8726d2cf8c28e4b7b6e546472648865abef98201.
* | Backport r292394 while it's not on stable/10Renato Botelho2015-12-172-14/+24
| |
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-11-271-1/+4
|\ \ | |/
| * MFC r291097:ume2015-11-271-1/+4
| | | | | | | | Don't truncate an interface name when -W option is specified.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-11-201-10/+16
|\ \ | |/
| * MFC r290367, r290370, r290437:ume2015-11-201-10/+16
| | | | | | | | | | | | | | Change to not truncate an interface name when -W option is specified. MFC Requested by: Jim Thompson <jim__at__netgate.com>
* | Revert "Import a better fix for #5484"Renato Botelho2015-11-201-15/+9
| | | | | | | | | | | | MFC is on stable/10 now (r291101) This reverts commit 99ddd03d08b1fd5ae8f8ba04cac699afbe3ffb24.
* | Import a better fix for #5484Renato Botelho2015-11-201-9/+15
| | | | | | | | | | | | Patch done by ume@FreeBSD.org TAG: netstat
* | Revert "Importing pfSense patch netstat_ifname_size.diff"Renato Botelho2015-11-201-4/+4
| | | | | | | | This reverts commit 817040ad698689f61817bcc33e4a7f0dca4f4c94.
* | MFC r285108:Luiz Otavio O Souza2015-10-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New AES modes for IPSec, user space components. Update setkey and libipsec to understand aes-gcm-16 as an encryption method. A partial commit of the work in review D2936. Submitted by: eri Reviewed by: jmg MFC after: 2 weeks Sponsored by: Rubicon Communications (Netgate) TAG: IPSEC-HEAD Issue: #4841
* | Revert AESNI patches.Luiz Otavio O Souza2015-10-201-9/+0
| | | | | | | | | | | | | | | | | | Revert "Importing pfSense patch aesgcm.soft.1.patch" This reverts commit 46e99a8858f1c843c1774e472c11d422ca2163ae. TAG: IPSEC-HEAD Issue: #4841
* | Merge branch 'stable/10' into develRenato Botelho2015-09-111-21/+23
|\ \ | |/
| * MFC r287406:hrs2015-09-091-21/+23
| | | | | | | | | | | | | | Divide statistics in the number of packets with 1000 instead of 1024 in human-readable form. PR: 183598
* | Importing pfSense patch aesgcm.soft.1.patchRenato Botelho2015-08-171-0/+9
| |
* | Importing pfSense patch netstat_ifname_size.diffRenato Botelho2015-08-171-4/+4
|/
* MFC r285782:markj2015-07-311-6/+18
| | | | | | Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *). PR: 201700
* MFC r265096:garga2015-07-021-11/+13
| | | | | | | | | | | | | | | Fix "netstat -gW" behavior broken in r259638. netstat has two options for printing multicast tables: sysctl (the default one for live systems) and kvm-based one (for cores). It looks like kvm-based one hasn't been working since it's been introduced in r190012 due to absence of mfctablesize kernel symbol. Check for all ipv4-multicast symbols being correctly resolved was introduced in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error message. Reported by: Olivier Cochard-Labbé Approved by: melifaro@ Sponsored by: Netgate
* MFC r266418, r266448hiren2015-04-063-5/+18
| | | | | | | | | Add the flowtype to the inpcb. Add -R to netstat to dump RSS/flow information. Reviewed by: delphij Relnotes: yes (for r266448) Sponsored by: Limelight Networks
* MFC r266177:hrs2014-10-091-3/+6
| | | | | | | - Do not override sin6_scope_id in LLA when it is already set to non-zero. This fixes destination list in output of netstat -r. - Plug a memory leak. - Add RTM_VERSION check.
* MFC r266494:hrs2014-10-091-10/+7
| | | | | | | - Fix a bug which can make sysctl() fail when -F is specified. - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because we have interfaces with longer names than 6 chars like epairN{a,b}. - Style fixes.
* MFC r271307:ae2014-10-091-1/+1
| | | | | | | | Add the ability to set `prefer_source' flag to an IPv6 address. It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address.
* MFC r270927:ae2014-09-081-1/+1
| | | | | | | Add the reverse part to rule #9. Also change its description in the netstat(8) output. Approved by: re (gjb)
* MFC r270348:markj2014-09-061-6/+6
| | | | | | | | | | | | | | Add some missing checks for unsupported interfaces (e.g. pflog(4)) when handling ioctls. While here, remove duplicated checks for a NULL ifp in in6_control(): this check is already done near the beginning of the function. MFC r270349: Suppress warnings when retrieving protocol stats from interfaces that don't support IPv6 (e.g. pflog(4)). PR: 189117 Approved by: re (gjb)
* MFC r261525:bz2014-08-161-0/+11
| | | | | Print the MD5 signature information introduced in r221023 (head) in the TCP statistics output.
* Merge r260524,r260540melifaro2014-05-082-16/+39
| | | | | | | | | | | r260524: Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8). r260540: Bump dates in nestat(1) and route(8) man pages. Fix several small errors introduced by r260524. Suggested by: glebius
* Merge r263203: garbage collect long time obsoleted (or never used) stuffglebius2014-04-092-18/+0
| | | | from routing API.
* o Provide a compatibility shim for netstat(1) to obtain output queueglebius2014-04-031-3/+8
| | | | | | | | | | | | | drops via NET_RT_IFLISTL sysctl. The sysctl handler appends oqdrops at the end of struct if_msghdrl, and netstat(1) sees that as an additional field of struct if_data. This allows us to fetch the data keeping ABI and API compatibility. This is direct commit to stable/10. o Merge r263331 from head, to restore printing of queue drops. Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Merge missed r262819, that fixes broken build.glebius2014-03-231-4/+4
|
* Merge r262763, r262767, r262771, r262806 from head:glebius2014-03-213-31/+38
| | | | | | | | | | - Remove rt_metrics_lite and simply put its members into rtentry. - Use counter(9) for rt_pksent (former rt_rmx.rmx_pksent). This removes another cache trashing ++ from packet forwarding path. - Create zini/fini methods for the rtentry UMA zone. Via initialize mutex and counter in them. - Fix reporting of rmx_pksent to routing socket. - Fix netstat(1) to report "Use" both in kvm(3) and sysctl(3) mode.
* Merge r259562,r259566,r259638,r259645,r260124 by melifaro:glebius2014-03-197-214/+351
| | | | | Switch netstat -rn to use standard API for retrieving list of routes instead of peeking inside in-kernel radix via kget.
* Bulk sync of pf changes from head, in attempt to fixup broken build Iglebius2014-03-123-2/+12
| | | | | | | | | made in r263029. Merge r257186,257215,257349,259736,261797. These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them.
* Merge r261582, r261601, r261610, r261613, r261627, r261640, r261641, r261823,glebius2014-03-044-3/+90
| | | | | | | | | | r261825, r261859, r261875, r261883, r261911, r262027, r262028, r262029, r262030, r262162 from head. Large flowtable revamp. See commit messages for merged revisions for details. Sponsored by: Netflix
* Merged /head:r256510,256512,257376,257469,260052:glebius2014-01-276-463/+314
| | | | Make 'netstat -i' use getifaddrs(3) instead of kvm(3).
* - Use getnameinfo(3) instead of gethostbyaddr(3) or inet_ntop(3).hrs2013-08-171-18/+25
| | | | | - Fill sin6_scope_id from in6p.sin6_addr.s6_addr[2]. struct inpcb has struct in6_addr for the endpoint addresses, so sin6_scope_id must be filled.
* Remove the large part of struct ipsecstat. Only few fields of thisae2013-07-231-69/+3
| | | | | | | | | | | structure is used, but they already have equal fields in the struct newipsecstat, that was introduced with FAST_IPSEC and then was merged together with old ipsecstat structure. This fixes kernel stack overflow on some architectures after migration ipsecstat to PCPU counters. Reported by: Taku YAMAMOTO, Maciej Milewski
* Sweep unused nlist entries.glebius2013-07-161-48/+26
| | | | Sponsored by: Nginx, Inc.
* Introduce new structure sfstat for collecting sendfile's statisticsae2013-07-152-11/+15
| | | | | | | and remove corresponding fields from struct mbstat. Use PCPU counters and SFSTAT_INC() macro for update these statistics. Discussed with: glebius
* Add -F fibnum option to specify an FIB number for -r flag.hrs2013-07-124-11/+40
|
* Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,ae2013-07-092-5/+5
| | | | ipsec4stat, ipsec6stat to PCPU counters.
* Migrate struct carpstats to PCPU counters.ae2013-07-091-1/+1
|
* Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.ae2013-07-091-3/+3
|
OpenPOWER on IntegriCloud