Use sk->sk_protocol instead of udp.pcflag to detect UDPLite protocol in eBPF

This commit is contained in:
Daniel 2024-01-10 14:10:42 +01:00
parent e2226d2fad
commit 67e2dba0d5
4 changed files with 3 additions and 3 deletions

View file

@ -170,10 +170,10 @@ int BPF_PROG(udp_v6_connect, struct sock *sk) {
udp_info->ipVersion = 6;
// Set protocol for UDPLite
if(us->udp.pcflag == 0) {
udp_info->protocol = UDP;
} else {
if(sk->sk_protocol == IPPROTO_UDPLITE) {
udp_info->protocol = UDPLite;
} else {
udp_info->protocol = UDP;
}
// Send event

0
firewall/interception/ebpf/programs/update.sh Normal file → Executable file
View file