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

UdpDissector & TcpDissector update

parent 001256dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -59,7 +59,7 @@ bool TcpDissector::Reassemble(Dissector * pDissector, ProtocolInfo * pProtocolIn
}
}


const EProtocolType TcpDissector::GetUpperLayerType() const {
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;
		return EProtocolType_Diameter;
	}
	}
+5 −1
Original line number Original line Diff line number Diff line
@@ -43,7 +43,11 @@ bool UdpDissector::NeedReassembly() const {


const EProtocolType UdpDissector::GetUpperLayerType() 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()
ProtocolInfoElement * UdpDissector::CreateLayerInfo()