diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-15 16:06:00 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-15 16:06:35 +0200 |
commit | 3f183062473e6c3eef126a33d8b75416f71b9aa8 (patch) | |
tree | a1a053ef810f36d85f0f838ada11393390bb7315 /bpf.c | |
parent | 1f229a105e82ce5327035f9ff04f2e55001ed2f8 (diff) |
bpf: add missing decode for poff
When we decode BPF extensions, add the missing opcode for poff.
While at it, also remove the '#' prefix, since it's optional in
bpfc.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpf.c')
-rw-r--r-- | bpf.c | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -96,29 +96,31 @@ static const char *bpf_dump_linux_k(uint32_t k) default: return "[%d]"; case SKF_AD_OFF + SKF_AD_PROTOCOL: - return "#proto"; + return "proto"; case SKF_AD_OFF + SKF_AD_PKTTYPE: - return "#type"; + return "type"; case SKF_AD_OFF + SKF_AD_IFINDEX: - return "#ifidx"; + return "ifidx"; case SKF_AD_OFF + SKF_AD_NLATTR: - return "#nla"; + return "nla"; case SKF_AD_OFF + SKF_AD_NLATTR_NEST: - return "#nlan"; + return "nlan"; case SKF_AD_OFF + SKF_AD_MARK: - return "#mark"; + return "mark"; case SKF_AD_OFF + SKF_AD_QUEUE: - return "#queue"; + return "queue"; case SKF_AD_OFF + SKF_AD_HATYPE: - return "#hatype"; + return "hatype"; case SKF_AD_OFF + SKF_AD_RXHASH: - return "#rxhash"; + return "rxhash"; case SKF_AD_OFF + SKF_AD_CPU: - return "#cpu"; + return "cpu"; case SKF_AD_OFF + SKF_AD_VLAN_TAG: - return "#vlant"; + return "vlant"; case SKF_AD_OFF + SKF_AD_VLAN_TAG_PRESENT: - return "#vlanp"; + return "vlanp"; + case SKF_AD_OFF + SKF_AD_PAY_OFFSET: + return "poff"; } } |