Add Teredo tunnel decapsulation.

Also fix header truncation check for IPv6 No Next header and add an
"ipv6_no_next" weird for such packets that aren't tunneled over Teredo
(which it calls "bubbles" and are used to create mappings in NATs).
This commit is contained in:
Jon Siwek 2012-05-25 12:37:35 -05:00
parent 0d7d74e11b
commit 8cd36f158b
14 changed files with 236 additions and 16 deletions

View file

@ -4,7 +4,6 @@ AYIYA_Analyzer::AYIYA_Analyzer(Connection* conn)
: Analyzer(AnalyzerTag::AYIYA, conn)
{
interp = new binpac::AYIYA::AYIYA_Conn(this);
did_session_done = 0;
}
AYIYA_Analyzer::~AYIYA_Analyzer()
@ -15,9 +14,7 @@ AYIYA_Analyzer::~AYIYA_Analyzer()
void AYIYA_Analyzer::Done()
{
Analyzer::Done();
if ( ! did_session_done )
Event(udp_session_done);
Event(udp_session_done);
}
void AYIYA_Analyzer::DeliverPacket(int len, const u_char* data, bool orig, int seq, const IP_Hdr* ip, int caplen)