mirror of
https://github.com/safing/portmaster
synced 2025-09-04 19:49:15 +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;
|
udp_info->ipVersion = 6;
|
||||||
|
|
||||||
// Set protocol for UDPLite
|
// Set protocol for UDPLite
|
||||||
if(us->udp.pcflag == 0) {
|
if(sk->sk_protocol == IPPROTO_UDPLITE) {
|
||||||
udp_info->protocol = UDP;
|
|
||||||
} else {
|
|
||||||
udp_info->protocol = UDPLite;
|
udp_info->protocol = UDPLite;
|
||||||
|
} else {
|
||||||
|
udp_info->protocol = UDP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send event
|
// 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