]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: m_bpf: fix next arg selection after tc opcode
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 18 Mar 2015 09:13:34 +0000 (10:13 +0100)
committerStephen Hemminger <shemming@brocade.com>
Tue, 24 Mar 2015 22:39:53 +0000 (15:39 -0700)
commit51cf36756cd77c27fa07f8be23c7c4e3997fee95
tree0e6b58c5e365540f2e4a810e47b7073cf978405a
parent599fc319eb41a2450b1ff4927a5849439ba5c45c
tc: m_bpf: fix next arg selection after tc opcode

Next argument after the tc opcode/verdict is optional, using NEXT_ARG()
requires to have another argument after that one otherwise tc will bail
out. Therefore, we need to advance to the next argument manually as done
elsewhere.

Fixes: 86ab59a6660f ("tc: add support for BPF based actions")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Pirko <jiri@resnulli.us>
tc/m_bpf.c