"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/test/appid_mock_session.h" 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.

appid_mock_session.h  (snort3-3.1.28.0):appid_mock_session.h  (snort3-3.1.29.0)
skipping to change at line 84 skipping to change at line 84
AppIdConfig::~AppIdConfig() = default; AppIdConfig::~AppIdConfig() = default;
OdpContext::OdpContext(const AppIdConfig&, snort::SnortConfig*) { } OdpContext::OdpContext(const AppIdConfig&, snort::SnortConfig*) { }
void FlowHAState::add(uint8_t) { } void FlowHAState::add(uint8_t) { }
static AppIdConfig stub_config; static AppIdConfig stub_config;
static AppIdContext stub_ctxt(stub_config); static AppIdContext stub_ctxt(stub_config);
static OdpContext stub_odp_ctxt(stub_config, nullptr); static OdpContext stub_odp_ctxt(stub_config, nullptr);
OdpContext* AppIdContext::odp_ctxt = &stub_odp_ctxt; OdpContext* AppIdContext::odp_ctxt = &stub_odp_ctxt;
AppIdSession::AppIdSession(IpProtocol proto, const SfIp* ip, uint16_t, AppIdInsp ector& inspector, AppIdSession::AppIdSession(IpProtocol proto, const SfIp* ip, uint16_t, AppIdInsp ector& inspector,
OdpContext&, uint16_t) : FlowData(inspector_id, &inspector), config(stub_con fig), OdpContext&, uint32_t) : FlowData(inspector_id, &inspector), config(stub_con fig),
protocol(proto), api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_c txt) protocol(proto), api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_c txt)
{ {
this->set_session_flags(APPID_SESSION_DISCOVER_APP | APPID_SESSION_SPECIAL_M ONITORED); this->set_session_flags(APPID_SESSION_DISCOVER_APP | APPID_SESSION_SPECIAL_M ONITORED);
odp_ctxt_version = odp_ctxt.get_version(); odp_ctxt_version = odp_ctxt.get_version();
set_service_port(APPID_UT_SERVICE_PORT); set_service_port(APPID_UT_SERVICE_PORT);
AppidChangeBits change_bits; AppidChangeBits change_bits;
set_client_user(APPID_UT_ID, APPID_UT_USERNAME, change_bits); set_client_user(APPID_UT_ID, APPID_UT_USERNAME, change_bits);
set_client_version(APPID_UT_CLIENT_VERSION, change_bits); set_client_version(APPID_UT_CLIENT_VERSION, change_bits);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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