Commit 74fc374f authored by Olav Kvittem's avatar Olav Kvittem

test for rec_bytes corrected for rec_to_file

parent ba4bd438
......@@ -1036,7 +1036,8 @@ static int rec_to_file(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 packet
// } else if (rec_bytes < sizeof(struct udp_data)){ // not a rude packet
} else if (rec_bytes < 64){ // not a rude packet
nsmallpkts++;
}
else
......@@ -1291,7 +1292,8 @@ 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