From 3f183062473e6c3eef126a33d8b75416f71b9aa8 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 15 Jun 2013 16:06:00 +0200 Subject: 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 --- bpf.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'bpf.c') diff --git a/bpf.c b/bpf.c index d18eac2..791f753 100644 --- a/bpf.c +++ b/bpf.c @@ -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"; } } -- cgit v1.2.3-54-g00ecf