Limit maximum number of DTLS fragments to 30.

Addresses BIT-1359
This commit is contained in:
Johanna Amann 2015-03-30 11:36:01 -07:00
parent d837d4a0be
commit 55ce8310a0

View file

@ -122,9 +122,9 @@ refine connection SSL_Conn += {
if ( i->message_last_sequence != 0 && i->first_sequence_seen )
{
uint64 total_length = i->message_last_sequence - i->message_first_sequence;
if ( total_length > 32 )
if ( total_length > 30 )
{
bro_analyzer()->ProtocolViolation(fmt("DTLS Message fragmented over more than 32 pieces. Cannot reassemble."));
bro_analyzer()->ProtocolViolation(fmt("DTLS Message fragmented over more than 30 pieces. Cannot reassemble."));
return true;
}