From: Eric Leblond Date: Mon, 12 Feb 2018 23:04:05 +0000 (+0100) Subject: ebpf: remove vlan_hdr alignement X-Git-Tag: suricata-4.1.0-beta1~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd98d7ddccbc9c6077efbcecef63d37cb0b5ad46;p=thirdparty%2Fsuricata.git ebpf: remove vlan_hdr alignement If we align the vlan_hdr then we increase its size and the parsing of packets with VLAN tag is broken. --- diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index 3ee9dd0b11..c83a6fa6f4 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -45,7 +45,7 @@ struct vlan_hdr { __u16 h_vlan_TCI; __u16 h_vlan_encapsulated_proto; -} __attribute__((__aligned__(8))) ; +}; struct flowv4_keys { __u32 src;