]> git.proxmox.com Git - mirror_iproute2.git/commit - lib/bpf.c
tc, bpf: check section names and type everywhere
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 12 Jan 2016 01:03:07 +0000 (02:03 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 18 Jan 2016 19:41:27 +0000 (11:41 -0800)
commitcce3d4664c6bc839116e504183f9caebe6994120
tree4c056c00e1a9d9eb6704457e990961a1c268c5a1
parent8f9afdd531560c1534be44424669add2e19deeec
tc, bpf: check section names and type everywhere

When extracting sections, we better check for name and type. Noticed
that some llvm versions emit .strtab and .shstrtab (e.g. saw it on pre
3.7), while more recent ones only seem to emit .strtab. Thus, make sure
we get the right sections.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
tc/tc_bpf.c