]> 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:57:02 +0000 (00:57 -0700)
commit075139f60e2090637d94ff50c2f084c5fe0fb523
tree16856f7257a2ae84ae2a32481d52ffb93ee76357
parent8c51a32e5c3dbe548b37a5e1ea70f4232bfce2c3
netmgr: refactor isc__nm_incstats() and isc__nm_decstats()

route/netlink sockets don't 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.c