Sign in
◑
Theme
gbmc
/
linux
/
67b3eadfb80dee4dfd56ca624f33e2ac7ed5987a
/
.
/
tools
/
testing
/
selftests
/
bpf
/
progs
/
sockmap_parse_prog.c
blob: 56e9aebf05f24c93c5199fc707ade78d4f6dc363 [
file
]
#include
<linux/bpf.h>
#include
<bpf/bpf_helpers.h>
#include
<bpf/bpf_endian.h>
SEC
(
"sk_skb1"
)
int
bpf_prog1
(
struct
__sk_buff
*
skb
)
{
return
skb
->
len
;
}
char
_license
[]
SEC
(
"license"
)
=
"GPL"
;