mirror of
https://github.com/bol-van/zapret2.git
synced 2026-10-29 06:02:05 +00:00
AI and manual fixes
This commit is contained in:
1 parent
aa5a1f4183
commit
ffcb14726d
5 files changed
+36
-33
No files matched your search
+1
-2
@@ -339,8 +339,7 @@ void proto_skip_udp(const uint8_t **data, size_t *len)
|
||||
|
||||
bool proto_check_ipv6(const uint8_t *data, size_t len)
|
||||
{
|
||||
return len >= sizeof(struct ip6_hdr) && (data[0] & 0xF0) == 0x60 &&
|
||||
(len - sizeof(struct ip6_hdr)) >= ntohs(((struct ip6_hdr*)data)->ip6_ctlun.ip6_un1.ip6_un1_plen);
|
||||
return len >= sizeof(struct ip6_hdr) && (data[0] & 0xF0) == 0x60;
|
||||
}
|
||||
// move to transport protocol
|
||||
// proto_type = 0 => error
|
||||
|
||||
Reference in new issue
Block a user