mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Use sk->sk_protocol instead of udp.pcflag to detect UDPLite protocol in eBPF
This commit is contained in:
parent
e2226d2fad
commit
67e2dba0d5
4 changed files with 3 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -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
0
firewall/interception/ebpf/programs/update.sh
Normal file → Executable file
Loading…
Add table
Reference in a new issue