1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-01 19:32:59 +03:00

nfqws: IP_NODEFRAG not working for ipv6

This commit is contained in:
bol-van 2022-01-03 22:16:11 +03:00
parent 78de2c2137
commit 1221626b1d
9 changed files with 1 additions and 1 deletions
binaries
aarch64
arm
mips32r1-lsb
mips32r1-msb
mips64r2-msb
ppc
x86
x86_64
nfq

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -854,7 +854,7 @@ static int rawsend_socket(sa_family_t family,uint32_t fwmark)
perror("rawsend: setsockopt(SO_PRIORITY)"); perror("rawsend: setsockopt(SO_PRIORITY)");
goto exiterr; goto exiterr;
} }
if (setsockopt(*sock, IPPROTO_IP, IP_NODEFRAG, &yes, sizeof(yes)) == -1) if (family==AF_INET && setsockopt(*sock, IPPROTO_IP, IP_NODEFRAG, &yes, sizeof(yes)) == -1)
{ {
perror("rawsend: setsockopt(IP_NODEFRAG)"); perror("rawsend: setsockopt(IP_NODEFRAG)");
goto exiterr; goto exiterr;