Commit 236ef1a8 authored by nikolajev's avatar nikolajev
Browse files

UdpDissector & TcpDissector update

parent 001256dd
Loading
Loading
Loading
Loading
+1 −1
Changes for adapter/src/Dispatcher/TcpDissector.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ bool TcpDissector::Reassemble(Dissector * pDissector, ProtocolInfo * pProtocolIn
}

const EProtocolType TcpDissector::GetUpperLayerType() const {
	if(m_tcpHdr && m_tcpHdr->destPort == 3868)
	if(m_tcpHdr && (m_tcpHdr->destPort == 3868 || m_tcpHdr->srcPort == 3868))
	{
		return EProtocolType_Diameter;
	}
+5 −1
Changes for adapter/src/Dispatcher/UdpDissector.cpp: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,11 @@ bool UdpDissector::NeedReassembly() const {

const EProtocolType UdpDissector::GetUpperLayerType() const 
{
	return EProtocolType_None;
	if(m_udpHdr && (m_udpHdr->destPort == 3868 || m_udpHdr->srcPort == 3868))
	{
		return EProtocolType_Diameter;
	}
	return EProtocolType_Sip;
}

ProtocolInfoElement * UdpDissector::CreateLayerInfo()