0001
0002
0003
0004 #ifndef __TEST_SELECT_REUSEPORT_COMMON_H
0005 #define __TEST_SELECT_REUSEPORT_COMMON_H
0006
0007 #include <linux/types.h>
0008
0009 enum result {
0010 DROP_ERR_INNER_MAP,
0011 DROP_ERR_SKB_DATA,
0012 DROP_ERR_SK_SELECT_REUSEPORT,
0013 DROP_MISC,
0014 PASS,
0015 PASS_ERR_SK_SELECT_REUSEPORT,
0016 NR_RESULTS,
0017 };
0018
0019 struct cmd {
0020 __u32 reuseport_index;
0021 __u32 pass_on_failure;
0022 };
0023
0024 struct data_check {
0025 __u32 ip_protocol;
0026 __u32 skb_addrs[8];
0027 __u16 skb_ports[2];
0028 __u16 eth_protocol;
0029 __u8 bind_inany;
0030 __u8 equal_check_end[0];
0031
0032 __u32 len;
0033 __u32 hash;
0034 };
0035
0036 #endif