Commit 88f063e6 authored by Olav Kvittem's avatar Olav Kvittem

invalid packet size test - network size and memory size differ

parent 33b61730
......@@ -1291,7 +1291,9 @@ static int rec_n_print(unsigned short port, unsigned long limit)
if(rec_bytes <= 0)
{
RUDEBUG1("crude: error when receiving packet: %s\n",strerror(errno));
} else if (rec_bytes < sizeof(struct udp_data)){ // not a rude/crude packet
// } else if (rec_bytes < sizeof(struct udp_data)){ // not a rude/crude packet
} else if (rec_bytes < 64 /* network size */){ // not a rude/crude packet
nsmallpkts++;
} else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment