"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/rna/rna_module.cc" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.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.

rna_module.cc  (snort3-3.1.31.0):rna_module.cc  (snort3-3.1.32.0)
skipping to change at line 291 skipping to change at line 291
{ {
{ "fpid", Parameter::PT_INT, "0:max32", "0", { "fpid", Parameter::PT_INT, "0:max32", "0",
"fingerprint id" }, "fingerprint id" },
{ "type", Parameter::PT_INT, "0:max32", "0", { "type", Parameter::PT_INT, "0:max32", "0",
"fingerprint type" }, "fingerprint type" },
{ "uuid", Parameter::PT_STRING, nullptr, nullptr, { "uuid", Parameter::PT_STRING, nullptr, nullptr,
"fingerprint uuid" }, "fingerprint uuid" },
{ "ttl", Parameter::PT_INT, "0:256", "0", { "ttl", Parameter::PT_INT, "0:255", "0",
"fingerprint ttl" }, "fingerprint ttl" },
{ "tcp_window", Parameter::PT_STRING, nullptr, nullptr, { "tcp_window", Parameter::PT_STRING, nullptr, nullptr,
"fingerprint tcp window" }, "fingerprint tcp window" },
{ "mss", Parameter::PT_STRING, nullptr, "X", { "mss", Parameter::PT_STRING, nullptr, "X",
"fingerprint mss" }, "fingerprint mss" },
{ "id", Parameter::PT_STRING, nullptr, "X", { "id", Parameter::PT_STRING, nullptr, "X",
"id" }, "id" },
skipping to change at line 484 skipping to change at line 484
fingerprint.tcp_window = v.get_string(); fingerprint.tcp_window = v.get_string();
else if (v.is("mss")) else if (v.is("mss"))
fingerprint.mss = v.get_string(); fingerprint.mss = v.get_string();
else if (v.is("id")) else if (v.is("id"))
fingerprint.id = v.get_string(); fingerprint.id = v.get_string();
else if (v.is("topts")) else if (v.is("topts"))
fingerprint.topts = v.get_string(); fingerprint.topts = v.get_string();
else if (v.is("ws")) else if (v.is("ws"))
fingerprint.ws = v.get_string(); fingerprint.ws = v.get_string();
else if (v.is("df")) else if (v.is("df"))
fingerprint.df = v.get_uint8(); fingerprint.df = v.get_bool();
else if (v.is("ua_type")) else if (v.is("ua_type"))
fingerprint.ua_type = (UserAgentInfoType)v.get_uint8(); fingerprint.ua_type = (UserAgentInfoType)v.get_uint8();
else if (v.is("host_name")) else if (v.is("host_name"))
fingerprint.host_name = v.get_string(); fingerprint.host_name = v.get_string();
else if (v.is("device")) else if (v.is("device"))
fingerprint.device = v.get_string(); fingerprint.device = v.get_string();
else if (v.is("user_agent")) else if (v.is("user_agent"))
return true; return true;
else if (v.is("substring")) else if (v.is("substring"))
{ {
const auto& ua_part = v.get_string(); const auto& ua_part = v.get_string();
if ( !ua_part ) if ( !ua_part )
return false; return false;
fingerprint.user_agent.emplace_back(ua_part); fingerprint.user_agent.emplace_back(ua_part);
} }
else if (v.is("dhcp55")) else if (v.is("dhcp55"))
fingerprint.dhcp55 = v.get_string(); fingerprint.dhcp55 = v.get_string();
else if (v.is("dhcp60")) else if (v.is("dhcp60"))
fingerprint.dhcp60 = v.get_string(); fingerprint.dhcp60 = v.get_string();
else if (v.is("major")) else if (v.is("major"))
fingerprint.smb_major = v.get_uint16(); fingerprint.smb_major = v.get_uint32();
else if (v.is("minor")) else if (v.is("minor"))
fingerprint.smb_minor = v.get_uint16(); fingerprint.smb_minor = v.get_uint32();
else if (v.is("flags")) else if (v.is("flags"))
fingerprint.smb_flags = v.get_uint32(); fingerprint.smb_flags = v.get_uint32();
else else
return false; return false;
} }
return true; return true;
} }
bool RnaModule::end(const char* fqn, int index, SnortConfig* sc) bool RnaModule::end(const char* fqn, int index, SnortConfig* sc)
{ {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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