"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/framework/value.h" 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.

value.h  (snort3-3.1.29.0):value.h  (snort3-3.1.30.0)
skipping to change at line 161 skipping to change at line 161
const uint8_t* get_buffer(unsigned& n) const const uint8_t* get_buffer(unsigned& n) const
{ n = (unsigned)str.size(); return (const uint8_t*)str.data(); } { n = (unsigned)str.size(); return (const uint8_t*)str.data(); }
const char* get_string() const const char* get_string() const
{ return str.c_str(); } { return str.c_str(); }
std::string get_as_string() const; std::string get_as_string() const;
Parameter::Type get_param_type() const; Parameter::Type get_param_type() const;
std::string get_origin_string() const; std::string get_origin_string() const;
std::string get_unquoted_string() const
{
if ( str.length() < 2 )
return str;
std::string tmp = str;
if ( tmp.front() == '"' and tmp.back() == '"' )
{
tmp.erase(0, 1);
tmp.erase(tmp.size() - 1, 1);
}
return tmp;
}
bool strtol(long&) const; bool strtol(long&) const;
bool strtol(long&, const std::string&) const; bool strtol(long&, const std::string&) const;
bool operator==(const char* s) const bool operator==(const char* s) const
{ return str == s; } { return str == s; }
bool operator==(long n) const bool operator==(long n) const
{ return (long)num == n; } { return (long)num == n; }
bool operator==(double d) const bool operator==(double d) const
 End of changes. 1 change blocks. 
0 lines changed or deleted 16 lines changed or added

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