Skip to content

sentinel-stack/hyperion-xdp/src/kern/hyperion_core.c

sentinel-stack/hyperion-xdp/src/kern/hyperion_core.c

Section titled “sentinel-stack/hyperion-xdp/src/kern/hyperion_core.c”
Name
structpolicy_t
structhyp_event
structflow_key
structflow_value
structevent_t
structcursor
Name
structSEC(“.maps” )
__uint(type , BPF_MAP_TYPE_ARRAY )
__type(key , __u32 )
__type(value , struct policy_t )
__uint(max_entries , 2 )
__uint(type , BPF_MAP_TYPE_RINGBUF )
__uint(max_entries , 1<< 14)
__uint(type , BPF_MAP_TYPE_LRU_HASH )
__type(key , struct flow_key )
__type(value , struct flow_value )
__uint(max_entries , 10000 )
inthyperion_filter(struct xdp_md * ctx)
char _license[]SEC(“license” )
Name
struct cursorSEC
Name
MAX_RULES
struct SEC(
".maps"
)
__uint(
type ,
BPF_MAP_TYPE_ARRAY
)
__type(
key ,
__u32
)
__type(
value ,
struct policy_t
)
__uint(
max_entries ,
2
)
__uint(
type ,
BPF_MAP_TYPE_RINGBUF
)
__uint(
max_entries ,
1<< 14
)
__uint(
type ,
BPF_MAP_TYPE_LRU_HASH
)
__type(
key ,
struct flow_key
)
__type(
value ,
struct flow_value
)
__uint(
max_entries ,
10000
)
int hyperion_filter(
struct xdp_md * ctx
)
char _license[] SEC(
"license"
)
struct cursor SEC;
#define MAX_RULES 2

Updated on 2026-05-26 at 13:25:29 +0000