diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-06-05 21:39:36 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-05 22:40:38 (GMT) |
commit | 0dcceabb0c1bf2d4c12a748df9933fad303072a7 (patch) | |
tree | 42b5b392bddc1c0add13fd61b3ab91e5c32b08ac /net/ipv4/ip_tunnel.c | |
parent | 78c8dbb6524c92f28ea56a09ce3960b435d8ed92 (diff) | |
download | linux-0dcceabb0c1bf2d4c12a748df9933fad303072a7.tar.xz |
net: filter: fix SKF_AD_PKTTYPE extension on big-endian
BPF classic->internal converter broke SKF_AD_PKTTYPE extension, since
pkt_type_offset() was failing to find skb->pkt_type field which is defined as:
__u8 pkt_type:3,
fclone:2,
ipvs_property:1,
peeked:1,
nf_trace:1;
Fix it by searching for 3 most significant bits and shift them by 5 at run-time
Fixes: bd4cf0ed331a ("net: filter: rework/optimize internal BPF interpreter's instruction set")
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Tested-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_tunnel.c')
0 files changed, 0 insertions, 0 deletions