freebsd-dev/usr.bin/netstat
Wojciech Macek 741afc6233 ip_mroute: refactor bw_meter API
API should work as following:
- periodicaly report Lower-or-EQual bandwidth (LEQ) connections
  over kernel socket, if user application registered for such
  per-flow notifications
- report Grater-or-EQual (GEQ) bandwidth as soon as it reaches
  specified value in configured time window

Custom implementation of callouts was removed. There is no
point of doing calout-wheel here as generic callouts are
doing exactly the same. The performance is not critical
for such reporting, so the biggest concern should be
to have a code which can be easily maintained.

This is ia preparation for locking rework which is highly inefficient.

Approved by:    mw
Sponsored by:   Stormshield
Obtained from:  Semihalf
Differential Revision:  https://reviews.freebsd.org/D30210
2021-05-21 06:43:41 +02:00
..
bpf.c
common.c usr.bin/netstat: use roundup2 when rounding up to power of 2. 2021-05-02 09:30:22 -07:00
common.h
if.c
inet6.c
inet.c netstat: fix typo from 0471a8c734 2021-05-10 20:49:19 +02:00
ipsec.c
main.c
Makefile
Makefile.depend
Makefile.depend.options
mbuf.c
mroute6.c
mroute.c ip_mroute: refactor bw_meter API 2021-05-21 06:43:41 +02:00
netgraph.c
netisr.c
netstat.1
netstat.h
nhgrp.c
nhops.c usr.bin/netstat: use roundup2 when rounding up to power of 2. 2021-05-02 09:30:22 -07:00
nlist_symbols Fix netstat -rs reporting. 2021-03-31 20:59:10 +00:00
pfkey.c
route.c Fix netstat -rs reporting. 2021-03-31 20:59:10 +00:00
sctp.c
unix.c