"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/dce_rpc/dce_smb2.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.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.

dce_smb2.cc  (snort3-3.1.28.0):dce_smb2.cc  (snort3-3.1.29.0)
skipping to change at line 95 skipping to change at line 95
key.mplsLabel = flow_key->mplsLabel; key.mplsLabel = flow_key->mplsLabel;
key.port_l = flow_key->port_l; key.port_l = flow_key->port_l;
key.port_h = flow_key->port_h; key.port_h = flow_key->port_h;
key.group_l = flow_key->group_l; key.group_l = flow_key->group_l;
key.group_h = flow_key->group_h; key.group_h = flow_key->group_h;
key.vlan_tag = flow_key->vlan_tag; key.vlan_tag = flow_key->vlan_tag;
key.addressSpaceId = flow_key->addressSpaceId; key.addressSpaceId = flow_key->addressSpaceId;
key.ip_protocol = flow_key->ip_protocol; key.ip_protocol = flow_key->ip_protocol;
key.pkt_type = (uint8_t)flow_key->pkt_type; key.pkt_type = (uint8_t)flow_key->pkt_type;
key.version = flow_key->version; key.version = flow_key->version;
key.padding = 0; key.padding = key.padding16 = 0;
Smb2KeyHash hasher; Smb2KeyHash hasher;
return hasher(key); return hasher(key);
} }
//Dce2Smb2SessionData member functions //Dce2Smb2SessionData member functions
Dce2Smb2SessionData::Dce2Smb2SessionData(const Packet* p, Dce2Smb2SessionData::Dce2Smb2SessionData(const Packet* p,
const dce2SmbProtoConf* proto) : Dce2SmbSessionData(p, proto) const dce2SmbProtoConf* proto) : Dce2SmbSessionData(p, proto)
{ {
skipping to change at line 154 skipping to change at line 154
Smb2SessionKey Dce2Smb2SessionData::get_session_key(uint64_t session_id) Smb2SessionKey Dce2Smb2SessionData::get_session_key(uint64_t session_id)
{ {
Smb2SessionKey key; Smb2SessionKey key;
Flow* flow = DetectionEngine::get_current_packet()->flow; Flow* flow = DetectionEngine::get_current_packet()->flow;
memcpy(key.cip, flow->client_ip.get_ip6_ptr(), 4*sizeof(uint32_t)); memcpy(key.cip, flow->client_ip.get_ip6_ptr(), 4*sizeof(uint32_t));
memcpy(key.sip, flow->server_ip.get_ip6_ptr(), 4*sizeof(uint32_t)); memcpy(key.sip, flow->server_ip.get_ip6_ptr(), 4*sizeof(uint32_t));
key.sid = session_id; key.sid = session_id;
key.cgroup = flow->client_group; key.cgroup = flow->client_group;
key.sgroup = flow->server_group; key.sgroup = flow->server_group;
key.asid = flow->key->addressSpaceId; key.asid = flow->key->addressSpaceId;
key.padding = 0;
return key; return key;
} }
Dce2Smb2SessionTrackerPtr Dce2Smb2SessionData::find_session(uint64_t session_id) Dce2Smb2SessionTrackerPtr Dce2Smb2SessionData::find_session(uint64_t session_id)
{ {
std::lock_guard<std::mutex> guard(session_data_mutex); std::lock_guard<std::mutex> guard(session_data_mutex);
auto it_session = connected_sessions.find(session_id); auto it_session = connected_sessions.find(session_id);
if (it_session != connected_sessions.end()) if (it_session != connected_sessions.end())
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

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