mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-31 20:29:36 +08:00
fix packet_header->caplen <= max_data_len in network.cpp
This commit is contained in:
parent
f2f90a9a15
commit
026f97687a
@ -312,7 +312,7 @@ void my_packet_handler(
|
|||||||
printf("\n");*/
|
printf("\n");*/
|
||||||
//mylog(log_debug,"received a packet!\n");
|
//mylog(log_debug,"received a packet!\n");
|
||||||
assert(packet_header->caplen <= packet_header->len);
|
assert(packet_header->caplen <= packet_header->len);
|
||||||
assert(packet_header->caplen <= max_data_len);
|
assert(packet_header->caplen <= huge_data_len);
|
||||||
//if(packet_header->caplen > max_data_len) return ;
|
//if(packet_header->caplen > max_data_len) return ;
|
||||||
if(g_fix_gro==0&&packet_header->caplen<packet_header->len) return;
|
if(g_fix_gro==0&&packet_header->caplen<packet_header->len) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user