Skip to content

Commit

Permalink
suricata-ebpf: remove the xdp_run_config
Browse files Browse the repository at this point in the history
fix error:

libbpf: elf: skipping unrecognized data section(7) .xdp_run_config
*** stack smashing detected ***: terminated
Aborted

Signed-off-by: Vincent Li <[email protected]>
  • Loading branch information
vincentmli committed Oct 16, 2024
1 parent b07ee72 commit 09613e5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ebpf/xdp_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@
* also be used as workaround of some hardware offload issue */
#define VLAN_TRACKING 1

struct {
__uint(priority, 10);
__uint(XDP_PASS, 1);
} XDP_RUN_CONFIG(xdp_hashfilter);

struct vlan_hdr {
__u16 h_vlan_TCI;
__u16 h_vlan_encapsulated_proto;
Expand Down

0 comments on commit 09613e5

Please sign in to comment.