summaryrefslogtreecommitdiff
path: root/curvetun.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-29 13:06:22 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-29 13:06:22 +0200
commite9cb93501216c891347481a032ac058cc3deea2b (patch)
treefe37fe1e5992cad9488efe9a2c35a9545b400c72 /curvetun.c
parentf6c99a52f7714cae8cd048d758086e213e163571 (diff)
ifpps: Properly zero out allocated stats
The dynamically allocated members of struct ifstat have an entry for each CPU. Properly consider this when resetting the stats in the STATS_ZERO1 macro. Reported-by: Daniel Borkmann <borkmann@iogearbox.net> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'curvetun.c')
0 files changed, 0 insertions, 0 deletions
rw-r--r--tools/testing/selftests/bpf/bpf_sys.h21
-rw-r--r--tools/testing/selftests/bpf/test_tag.c6
-rw-r--r--tools/testing/selftests/bpf/test_verifier.c8
6 files changed, 17 insertions, 32 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c