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E_CGROUP_SOCKOPT = 0x19
|
|
|
|
|
BPF_PROG_TYPE_TRACING = 0x1a
|
|
|
|
|
BPF_CGROUP_INET_INGRESS = 0x0
|
|
|
|
|
BPF_CGROUP_INET_EGRESS = 0x1
|
|
|
|
|
BPF_CGROUP_INET_SOCK_CREATE = 0x2
|
|
|
|
|
BPF_CGROUP_SOCK_OPS = 0x3
|
|
|
|
|
BPF_SK_SKB_STREAM_PARSER = 0x4
|
|
|
|
|
BPF_SK_SKB_STREAM_VERDICT = 0x5
|
|
|
|
|
BPF_CGROUP_DEVICE = 0x6
|
|
|
|
|
BPF_SK_MSG_VERDICT = 0x7
|
|
|
|
|
BPF_CGROUP_INET4_BIND = 0x8
|
|
|
|
|
BPF_CGROUP_INET6_BIND = 0x9
|
|
|
|
|
BPF_CGROUP_INET4_CONNECT = 0xa
|
|
|
|
|
BPF_CGROUP_INET6_CONNECT = 0xb
|
|
|
|
|
BPF_CGROUP_INET4_POST_BIND = 0xc
|
|
|
|
|
BPF_CGROUP_INET6_POST_BIND = 0xd
|
|
|
|
|
BPF_CGROUP_UDP4_SENDMSG = 0xe
|
|
|
|
|
BPF_CGROUP_UDP6_SENDMSG = 0xf
|
|
|
|
|
BPF_LIRC_MODE2 = 0x10
|
|
|
|
|
BPF_FLOW_DISSECTOR = 0x11
|
|
|
|
|
BPF_CGROUP_SYSCTL = 0x12
|
|
|
|
|
BPF_CGROUP_UDP4_RECVMSG = 0x13
|
|
|
|
|
BPF_CGROUP_UDP6_RECVMSG = 0x14
|
|
|
|
|
BPF_CGROUP_GETSOCKOPT = 0x15
|
|
|
|
|
BPF_CGROUP_SETSOCKOPT = 0x16
|
|
|
|
|
BPF_TRACE_RAW_TP = 0x17
|
|
|
|
|
BPF_TRACE_FENTRY = 0x18
|
|
|
|
|
BPF_TRACE_FEXIT = 0x19
|
|
|
|
|
BPF_STACK_BUILD_ID_EMPTY = 0x0
|
|
|
|
|
BPF_STACK_BUILD_ID_VALID = 0x1
|
|
|
|
|
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|
|
BPF_PROG_TYPE_TRACING = 0x1a
|
|
|
|
|
BPF_PROG_TYPE_STRUCT_OPS = 0x1b
|
|
|
|
|
BPF_PROG_TYPE_EXT = 0x1c
|
|
|
|
|
BPF_PROG_TYPE_LSM = 0x1d
|
|
|
|
|
BPF_CGROUP_INET_INGRESS = 0x0
|
|
|
|
|
BPF_CGROUP_INET_EGRESS = 0x1
|
|
|
|
|
BPF_CGROUP_INET_SOCK_CREATE = 0x2
|
|
|
|
|
BPF_CGROUP_SOCK_OPS = 0x3
|
|
|
|
|
BPF_SK_SKB_STREAM_PARSER = 0x4
|
|
|
|
|
BPF_SK_SKB_STREAM_VERDICT = 0x5
|
|
|
|
|
BPF_CGROUP_DEVICE = 0x6
|
|
|
|
|
BPF_SK_MSG_VERDICT = 0x7
|
|
|
|
|
BPF_CGROUP_INET4_BIND = 0x8
|
|
|
|
|
BPF_CGROUP_INET6_BIND = 0x9
|
|
|
|
|
BPF_CGROUP_INET4_CONNECT = 0xa
|
|
|
|
|
BPF_CGROUP_INET6_CONNECT = 0xb
|
|
|
|
|
BPF_CGROUP_INET4_POST_BIND = 0xc
|
|
|
|
|
BPF_CGROUP_INET6_POST_BIND = 0xd
|
|
|
|
|
BPF_CGROUP_UDP4_SENDMSG = 0xe
|
|
|
|
|
BPF_CGROUP_UDP6_SENDMSG = 0xf
|
|
|
|
|
BPF_LIRC_MODE2 = 0x10
|
|
|
|
|
BPF_FLOW_DISSECTOR = 0x11
|
|
|
|
|
BPF_CGROUP_SYSCTL = 0x12
|
|
|
|
|
BPF_CGROUP_UDP4_RECVMSG = 0x13
|
|
|
|
|
BPF_CGROUP_UDP6_RECVMSG = 0x14
|
|
|
|
|
BPF_CGROUP_GETSOCKOPT = 0x15
|
|
|
|
|
BPF_CGROUP_SETSOCKOPT = 0x16
|
|
|
|
|
BPF_TRACE_RAW_TP = 0x17
|
|
|
|
|
BPF_TRACE_FENTRY = 0x18
|
|
|
|
|
BPF_TRACE_FEXIT = 0x19
|
|
|
|
|
BPF_MODIFY_RETURN = 0x1a
|
|
|
|
|
BPF_LSM_MAC = 0x1b
|
|
|
|
|
BPF_ANY = 0x0
|
|
|
|
|
BPF_NOEXIST = 0x1
|
|
|
|
|
BPF_EXIST = 0x2
|
|
|
|
|
BPF_F_LOCK = 0x4
|
|
|
|
|
BPF_F_NO_PREALLOC = 0x1
|
|
|
|
|
BPF_F_NO_COMMON_LRU = 0x2
|
|
|
|
|
BPF_F_NUMA_NODE = 0x4
|
|
|
|
|
BPF_F_RDONLY = 0x8
|
|
|
|
|
BPF_F_WRONLY = 0x10
|
|
|
|
|
BPF_F_STACK_BUILD_ID = 0x20
|
|
|
|
|
BPF_F_ZERO_SEED = 0x40
|
|
|
|
|
BPF_F_RDONLY_PROG = 0x80
|
|
|
|
|
BPF_F_WRONLY_PROG = 0x100
|
|
|
|
|
BPF_F_CLONE = 0x200
|
|
|
|
|
BPF_F_MMAPABLE = 0x400
|
|
|
|
|
BPF_STACK_BUILD_ID_EMPTY = 0x0
|
|
|
|
|
BPF_STACK_BUILD_ID_VALID = 0x1
|
|
|
|
|
BPF_STACK_BUILD_ID_IP = 0x2
|
|
|
|
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
|
|
|
|
BPF_F_INVALIDATE_HASH = 0x2
|
|
|
|
|
BPF_F_HDR_FIELD_MASK = 0xf
|
|
|
|
|
BPF_F_PSEUDO_HDR = 0x10
|
|
|
|
|
BPF_F_MARK_MANGLED_0 = 0x20
|
|
|
|
|
BPF_F_MARK_ENFORCE = 0x40
|
|
|
|
|
BPF_F_INGRESS = 0x1
|
|
|
|
|
BPF_F_TUNINFO_IPV6 = 0x1
|
|
|
|
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
|
|
|
|
BPF_F_USER_STACK = 0x100
|
|
|
|
|
BPF_F_FAST_STACK_CMP = 0x200
|
|
|
|
|
BPF_F_REUSE_STACKID = 0x400
|
|
|
|
|
BPF_F_USER_BUILD_ID = 0x800
|
|
|
|
|
BPF_F_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|
BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
@ -2205,7 +2279,7 @@ const (
|
|
|
|
|
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
|
|
|
|
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
|
|
|
|
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
|
|
|
|
DEVLINK_CMD_MAX = 0x44
|
|
|
|
|
DEVLINK_CMD_MAX = 0x48
|
|
|
|
|
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
|
|
|
|
DEVLINK_PORT_TYPE_AUTO = 0x1
|
|
|
|
|
DEVLINK_PORT_TYPE_ETH = 0x2
|
|
|
|
@ -2285,7 +2359,7 @@ const (
|
|
|
|
|
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
|
|
|
|
DEVLINK_ATTR_PAD = 0x3d
|
|
|
|
|
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
|
|
|
|
DEVLINK_ATTR_MAX = 0x8c
|
|
|
|
|
DEVLINK_ATTR_MAX = 0x90
|
|
|
|
|
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
|
|
|
|
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
|
|
|
|
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
|
|
|
|