Remove reporter warning for bad IP protocols

It turns out that this can be *very* spammy on networks where we're receiving
lots of these packets, and can fill up the reporter log very quickly. Weirds are
already reported in all of these cases anyways, so it doesn't make sense to log
a reporter warning too.
This commit is contained in:
Tim Wojtulewicz 2022-08-18 10:01:49 -07:00
parent 0f8e675a49
commit 40b1452905

View file

@ -310,8 +310,7 @@ int zeek::packet_analysis::IP::ParsePacket(int caplen, const u_char* const pkt,
else
{
zeek::reporter->InternalWarning("Bad IP protocol version in IP::ParsePacket");
return -1;
return -2;
}
if ( (uint32_t)caplen != inner->TotalLen() )