#
d87bcd35 |
| 28-Dec-2022 |
mrg <mrg@NetBSD.org> |
if not given an interface to monitor by default, pick the one with the most bytes in/out the first time and keep using it.
in addition to picking the most likely intersting interface, this actually
if not given an interface to monitor by default, pick the one with the most bytes in/out the first time and keep using it.
in addition to picking the most likely intersting interface, this actually fixes a bug where interfaces coming/going in the middle of eg, "netstat -b -w 1", may end up showing the data for another interface on any output line (including the the header declaring the interface!)
show more ...
|
#
c9792cf2 |
| 12-Dec-2022 |
msaitoh <msaitoh@NetBSD.org> |
Use warn() instead of warnx() and simplify.
|
#
7e4a74d0 |
| 19-Nov-2022 |
taca <taca@NetBSD.org> |
netstat/if.c: Fix error message with "-w" option.
Now ifq_drops is 64bit unsigned integer.
No description in src/doc/CHANGES?
|
#
a399bebb |
| 24-Oct-2022 |
msaitoh <msaitoh@NetBSD.org> |
Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.
|
#
91d7bc49 |
| 21-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
s/u_quad_t/uint64_t/. No functional change.
|
#
420e25d6 |
| 12-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
Print oqdrops correctly in continuous display mode using with kvm.
|
#
e51e188f |
| 11-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
Fix printing current output drop packet count in continuous display mode.
|
#
cfd5179d |
| 05-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
G.C. No functional change.
|
#
3569a9af |
| 05-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
Print oqdrops correctly.
|
#
c87fbb42 |
| 05-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
Get if_data correctly when kvm is used.
|
#
c727f7c4 |
| 02-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
KNF. No functional change.
|
#
a48d562c |
| 01-Sep-2022 |
msaitoh <msaitoh@NetBSD.org> |
KNF. No functional change.
|
#
f98f2916 |
| 18-Aug-2022 |
msaitoh <msaitoh@NetBSD.org> |
Use NULL instead of 0.
|
#
7f92987e |
| 02-Feb-2020 |
thorpej <thorpej@NetBSD.org> |
Update for per-cpu interface statistics.
|
#
6a10f6bc |
| 11-Jul-2018 |
msaitoh <msaitoh@NetBSD.org> |
Print iqdrops, too. This change also fixes a bug that Odrops prints iqdrops when kvm read failed.
|
#
c104e0fa |
| 23-Feb-2017 |
ozaki-r <ozaki-r@NetBSD.org> |
Remove mkludge stuffs
For unknown reasons, IPv6 multicast addresses are linked to a first IPv6 address assigned to an interface. Due to the design, when removing a first address having multicast add
Remove mkludge stuffs
For unknown reasons, IPv6 multicast addresses are linked to a first IPv6 address assigned to an interface. Due to the design, when removing a first address having multicast addresses, we need to save them to somewhere and later restore them once a new IPv6 address is activated. mkludge stuffs support the operations.
This change links multicast addresses to an interface directly and throws the kludge away.
Note that as usual some obsolete member variables remain for kvm(3) users. And also sysctl net.inet6.multicast_kludge remains to avoid breaking old ifmcstat.
TODO: currently ifnet has a list of in6_multi but obviously the list should be protocol independent. Provide a common structure (if_multi or something) to handle in6_multi and in_multi together as well as ifaddr does for in_ifaddr and in6_ifaddr.
show more ...
|
#
b961e72d |
| 22-Jan-2017 |
mrg <mrg@NetBSD.org> |
re-do the previous to avoid malloc/free on the same size every iteration.
with this, or the previous, 'netstat -b 1' no longer leaks memory in -current (or any older release using sysctl for this.)
|
#
170636b7 |
| 22-Jan-2017 |
christos <christos@NetBSD.org> |
sprinkle free
|
#
25e55133 |
| 11-Jan-2017 |
ozaki-r <ozaki-r@NetBSD.org> |
Fix showing multicast addresses of !IFF_UP interfaces
netstat appends '*' to the name of an interface without IFF_UP, so if_nametoindex which is used in mc_print fails. mc_print needs just an interf
Fix showing multicast addresses of !IFF_UP interfaces
netstat appends '*' to the name of an interface without IFF_UP, so if_nametoindex which is used in mc_print fails. mc_print needs just an interface index so pass it instead of a tweaked interface name.
show more ...
|
#
cd561272 |
| 24-Nov-2016 |
dholland <dholland@NetBSD.org> |
Fix "sidewaysintpr", the thing that prints interface statistics in a loop, to use signals properly. There are two copies of this code; one uses kvm and the other uses sysctls. One copy had been updat
Fix "sidewaysintpr", the thing that prints interface statistics in a loop, to use signals properly. There are two copies of this code; one uses kvm and the other uses sysctls. One copy had been updated to use sigset_t and sigsuspend; the other was using vintage sigpause(). Sync up the code so both use sigpause. Also, use sig_atomic_t, and block SIGALRM when not waiting for it to avoid a small and unlikely but real race.
Since the non-modernized copy of the code *had* for some been modernized to use setitimer instead of just alarm(), propagate that change to the other copy.
These copies could share more logic than they do.
show more ...
|
#
22f9c8d2 |
| 14-Jul-2016 |
christos <christos@NetBSD.org> |
more XXX removal.
|
#
cc884e5b |
| 14-Jul-2016 |
christos <christos@NetBSD.org> |
XXX: removal
|
#
1ffb7b6c |
| 14-Jul-2016 |
christos <christos@NetBSD.org> |
remove __P
|
#
9f3788ef |
| 14-Jul-2016 |
christos <christos@NetBSD.org> |
dedup
|
#
3f93158d |
| 14-Jul-2016 |
christos <christos@NetBSD.org> |
use sysctl to print multicast addresses
|