"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/policy_selectors/tenant_selector/tenant_selector.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.

tenant_selector.cc  (snort3-3.1.28.0):tenant_selector.cc  (snort3-3.1.29.0)
skipping to change at line 138 skipping to change at line 138
set_network_policy(use->network_index); set_network_policy(use->network_index);
set_inspection_policy(use->inspection_index); set_inspection_policy(use->inspection_index);
set_ips_policy(sc, use->ips_index); set_ips_policy(sc, use->ips_index);
return true; return true;
} }
tenant_select_stats.no_match++; tenant_select_stats.no_match++;
return false; return false;
} }
bool TenantSelector::select_default_policies(const _daq_pkt_hdr& pkthdr, const S nortConfig* sc) bool TenantSelector::select_default_policies(const _daq_pkt_hdr& pkthdr, const S nortConfig* sc)
{ { return select_default_policies(static_cast<uint32_t>(pkthdr.tenant_id), sc); }
// FIXIT-H replace address_space_id with tenant_id when it is added to the p
kthdr
return select_default_policies(static_cast<uint32_t>(pkthdr.address_space_id
), sc);
}
bool TenantSelector::select_default_policies(const _daq_flow_stats& stats, const SnortConfig* sc) bool TenantSelector::select_default_policies(const _daq_flow_stats& stats, const SnortConfig* sc)
{ { return select_default_policies(static_cast<uint32_t>(stats.tenant_id), sc); }
// FIXIT-H replace address_space_id with tenant_id when it is added to the p
kthdr
return select_default_policies(static_cast<uint32_t>(stats.address_space_id)
, sc);
}
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// api stuff // api stuff
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
static Module* mod_ctor() static Module* mod_ctor()
{ return new TenantSelectorModule; } { return new TenantSelectorModule; }
static void mod_dtor(Module* m) static void mod_dtor(Module* m)
{ delete m; } { delete m; }
 End of changes. 2 change blocks. 
12 lines changed or deleted 2 lines changed or added

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