"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/sip/spp_sip.c" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

spp_sip.c  (snort-2.9.16.1):spp_sip.c  (snort-2.9.17)
skipping to change at line 401 skipping to change at line 401
DEBUG_WRAP(DebugMessage(DEBUG_SIP, "%s\n", SIP_DEBUG__START_MSG)); DEBUG_WRAP(DebugMessage(DEBUG_SIP, "%s\n", SIP_DEBUG__START_MSG));
packetp = (SFSnortPacket*) ipacketp; packetp = (SFSnortPacket*) ipacketp;
sfPolicyUserPolicySet (sip_config, policy_id); sfPolicyUserPolicySet (sip_config, policy_id);
// preconditions - what we registered for // preconditions - what we registered for
assert((IsUDP(packetp) || IsTCP(packetp)) && assert((IsUDP(packetp) || IsTCP(packetp)) &&
packetp->payload && packetp->payload_size); packetp->payload && packetp->payload_size);
if (IsTCP(packetp) && (!_dpd.readyForProcess(packetp))) if (IsTCP(packetp))
{ {
/* Packet will be rebuilt, so wait for it */ if (!_dpd.readyForProcess(packetp))
DEBUG_WRAP(DebugMessage(DEBUG_SIP, "Packet will be reassembled\n")); {
return; /* Packet will be rebuilt, so wait for it */
DEBUG_WRAP(DebugMessage(DEBUG_SIP, "Packet will be reassembled\n"));
return;
}
if (_dpd.sessionAPI->get_application_data(packetp->stream_session, PP_SS
L) &&
!_dpd.streamAPI->is_session_decrypted(packetp->stream_session))
{
/* Packet is a non-SIP/encrypted SIP one, skip those */
DEBUG_WRAP(DebugMessage(DEBUG_SIP, "Packet is encrypted or not a SIP
packet\n"));
return;
}
} }
PREPROC_PROFILE_START(sipPerfStats); PREPROC_PROFILE_START(sipPerfStats);
sip_eval_config = sfPolicyUserDataGetCurrent(sip_config); sip_eval_config = sfPolicyUserDataGetCurrent(sip_config);
/* Attempt to get a previously allocated SIP block. */ /* Attempt to get a previously allocated SIP block. */
sessp = _dpd.sessionAPI->get_application_data(packetp->stream_session, PP_SI P); sessp = _dpd.sessionAPI->get_application_data(packetp->stream_session, PP_SI P);
if (sessp != NULL) if (sessp != NULL)
{ {
 End of changes. 2 change blocks. 
4 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)