An extension to the ICMP analyzer to handle redirects.

The analyzer now raises icmp_redirect() events that come with the
redirection address.

By Julien Sentier.
This commit is contained in:
Robin Sommer 2011-05-13 18:47:50 -07:00
parent 437ac29ca9
commit 1199085b27
6 changed files with 49 additions and 1 deletions

View file

@ -229,6 +229,14 @@ bool DPM::BuildInitialAnalyzerTree(TransportProto proto, Connection* conn,
}
break;
case ICMP_REDIRECT:
if ( ICMP_Redir_Analyzer::Available() )
{
root = new ICMP_Redir_Analyzer(conn);
DBG_DPD(conn, "activated ICMP Redir analyzer");
}
break;
case ICMP_UNREACH:
if ( ICMP_Unreachable_Analyzer::Available() )
{