"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ips_options/ips_sd_pattern.cc" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.0.tar.gz

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

ips_sd_pattern.cc  (snort3-3.1.29.0):ips_sd_pattern.cc  (snort3-3.1.30.0)
skipping to change at line 342 skipping to change at line 342
return false; return false;
} }
config = SdPatternConfig(); config = SdPatternConfig();
return true; return true;
} }
bool SdPatternModule::set(const char*, Value& v, SnortConfig*) bool SdPatternModule::set(const char*, Value& v, SnortConfig*)
{ {
if ( v.is("~pattern") ) if ( v.is("~pattern") )
{ config.pii = v.get_unquoted_string();
config.pii = v.get_string();
// remove quotes
config.pii.erase(0, 1);
config.pii.erase(config.pii.length()-1, 1);
}
else if ( v.is("threshold") ) else if ( v.is("threshold") )
config.threshold = v.get_uint32(); config.threshold = v.get_uint32();
return true; return true;
} }
bool SdPatternModule::end(const char*, int, SnortConfig*) bool SdPatternModule::end(const char*, int, SnortConfig*)
{ {
IpsPolicy* p = get_ips_policy(); IpsPolicy* p = get_ips_policy();
 End of changes. 1 change blocks. 
6 lines changed or deleted 1 lines changed or added

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