]> git.ipfire.org Git - thirdparty/bind9.git/commit
netmgr: refactor isc__nm_incstats() and isc__nm_decstats()
authorEvan Hunt <each@isc.org>
Sat, 2 Oct 2021 23:26:43 +0000 (16:26 -0700)
committerEvan Hunt <each@isc.org>
Fri, 15 Oct 2021 07:40:37 +0000 (00:40 -0700)
commit8d6bf826c66efae2effcd85256615b8adbead6c9
tree3ab386c8f312180a7a6c96291c2fd7933a09d0ae
parent5307b663b20a7957fc687108ab824c33e15d6fe4
netmgr: refactor isc__nm_incstats() and isc__nm_decstats()

After support for route/netlink sockets is merged, not all sockets
will have stats counters associated with them, so it's now necessary
to check whether socket stats exist before incrementing or decrementing
them. rather than relying on the caller for this, we now just pass the
socket and an index, and the correct stats counter will be updated if
it exists.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/isc/netmgr/udp.c