]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ebpf: remove vlan_hdr alignement
authorEric Leblond <eric@regit.org>
Mon, 12 Feb 2018 23:04:05 +0000 (00:04 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 1 Mar 2018 13:36:50 +0000 (14:36 +0100)
If we align the vlan_hdr then we increase its size and the parsing
of packets with VLAN tag is broken.

ebpf/xdp_filter.c

index 3ee9dd0b114c19a528178668d3af668f9b1ce4ef..c83a6fa6f49afda2935e416479e09c46d5b20448 100644 (file)
@@ -45,7 +45,7 @@
 struct vlan_hdr {
     __u16      h_vlan_TCI;
     __u16      h_vlan_encapsulated_proto;
-} __attribute__((__aligned__(8))) ;
+};
 
 struct flowv4_keys {
     __u32 src;