]> git.ipfire.org Git - thirdparty/systemd.git/commit
bpf: reset "extra" IP accounting counters when turning off IP accounting for a unit 8205/head
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 14:22:31 +0000 (15:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 15:43:36 +0000 (16:43 +0100)
commit5128346127a5e8c228ac5b3e201f869715a1929f
tree22152f46578874375f50a3a12eb32d7492e365f5
parentaa2b6f1d2b019de044f88851499acfef49350090
bpf: reset "extra" IP accounting counters when turning off IP accounting for a unit

We maintain an "extra" set of IP accounting counters that are used when
we systemd is reloaded to carry over the counters from the previous run.
Let's reset these to zero whenever IP accounting is turned off. If we
don't do this then turning off IP accounting and back on later wouldn't
reset the counters, which is quite surprising and different from how our
CPU time counting works.
src/core/bpf-firewall.c