"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/preprocessors/Stream6/stream_common.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.

stream_common.c  (snort-2.9.16.1):stream_common.c  (snort-2.9.17)
skipping to change at line 637 skipping to change at line 637
StreamConfig *pPolicyConfig; StreamConfig *pPolicyConfig;
pPolicyConfig = ( StreamConfig * ) sfPolicyUserDataGet( stream_online_config , getNapRuntimePolicy() ); pPolicyConfig = ( StreamConfig * ) sfPolicyUserDataGet( stream_online_config , getNapRuntimePolicy() );
if (pPolicyConfig == NULL) if (pPolicyConfig == NULL)
return -1; return -1;
stream_session_config = pPolicyConfig->session_config; stream_session_config = pPolicyConfig->session_config;
return 0; return 0;
} }
bool getStreamIgnoreAnyConfig (struct _SnortConfig *sc, IpProto protocol)
{
StreamConfig *config;
tSfPolicyId policyId;
for (policyId = 0; policyId < sfPolicyNumAllocated(sc->policy_config); polic
yId++) {
if ((config = getStreamPolicyConfig(policyId, 0))) {
switch (protocol) {
case IPPROTO_TCP :
if ((config->tcp_config) && (config->tcp_config->default_poli
cy->flags & STREAM_CONFIG_IGNORE_ANY))
return true;
case IPPROTO_UDP :
if ((config->udp_config) && (config->udp_config->default_poli
cy->flags & STREAM_CONFIG_IGNORE_ANY))
return true;
default:
break;
}
}
}
return false;
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

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