Commit a0b37043 authored by Olav Kvittem's avatar Olav Kvittem

struct size bug results in skipping records

parent 88f063e6
......@@ -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
//ok } else if (rec_bytes < sizeof(struct udp_data)){ // not a rude packet
} else if (rec_bytes < 64 ){ // not a rude 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