mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Log ip version for udp
This commit is contained in:
parent
2ff83c6030
commit
8c405b81df
6
mangle.c
6
mangle.c
@ -273,14 +273,16 @@ int process_udp4_packet(const uint8_t *pkt, uint32_t pktlen) {
|
||||
const struct udphdr *udph;
|
||||
const uint8_t *data;
|
||||
uint32_t dlen;
|
||||
int ipver = netproto_version(pkt, pktlen);
|
||||
lgtrace_start("Got udp packet");
|
||||
lgtrace_addp("IPv%d", ipver);
|
||||
|
||||
int ret = udp4_payload_split((uint8_t *)pkt, pktlen,
|
||||
(struct iphdr **)&iph, &iph_len,
|
||||
(struct udphdr **)&udph,
|
||||
(uint8_t **)&data, &dlen);
|
||||
|
||||
lgtrace_start("Got udp packet");
|
||||
|
||||
|
||||
if (ret < 0) {
|
||||
lgtrace_addp("undefined");
|
||||
goto accept;
|
||||
|
Loading…
Reference in New Issue
Block a user