if ( asd->common.flow_type == APPID_FLOW_TYPE_NORMAL )
{
if ( asd->service_disco_state != APPID_DISCO_STATE_FINISHED ||
- !asd->is_third_party_appid_done() ||
+ !asd->is_tp_appid_done() ||
asd->get_session_flags(APPID_SESSION_HTTP_SESSION | APPID_SESSION_CONTINUE) ||
(asd->get_session_flags(APPID_SESSION_ENCRYPTED) &&
(asd->get_session_flags(APPID_SESSION_DECRYPTED) ||
// FIXIT-M: If a third-party module is not available then this
// should probably check if an appId has been discovered
// by the local AppId module.
- return asd->is_third_party_appid_available();
+ return asd->is_tp_appid_available();
}
return false;
if ( asd && ( get_flow_type(flow) == APPID_FLOW_TYPE_NORMAL ) )
{
appHA->flags = APPID_HA_FLAGS_APP;
- if ( asd->is_third_party_appid_available() )
+ if ( asd->is_tp_appid_available() )
appHA->flags |= APPID_HA_FLAGS_TP_DONE;
if ( asd->is_service_detected() )
appHA->flags |= APPID_HA_FLAGS_SVC_DONE;
if ( AppIdSession* asd = get_appid_session(flow) )
if ( ( asd->common.flow_type == APPID_FLOW_TYPE_NORMAL ) &&
- !asd->is_third_party_appid_done() )
+ !asd->is_tp_appid_done() )
done = false;
return done;
if (service.get_id() > APP_ID_NONE && !deferred)
return service.get_id();
- if (is_third_party_appid_available())
+ if (is_tp_appid_available())
{
if (tp_app_id > APP_ID_NONE)
return tp_app_id;
if (service.get_id() > APP_ID_NONE && !deferred)
return service.get_id();
- if (is_third_party_appid_available() && tp_app_id > APP_ID_NONE)
+ if (is_tp_appid_available() && tp_app_id > APP_ID_NONE)
return tp_app_id;
else if (deferred)
return service.get_id();
return dsession;
}
-bool AppIdSession::is_third_party_appid_done() const
+bool AppIdSession::is_tp_appid_done() const
{
#ifdef ENABLE_APPID_THIRD_PARTY
if (config->have_tp())
return true;
}
-bool AppIdSession::is_third_party_appid_available() const
+bool AppIdSession::is_tp_appid_available() const
{
#ifdef ENABLE_APPID_THIRD_PARTY
if (config->have_tp())
AppIdHttpSession* get_http_session();
AppIdDnsSession* get_dns_session();
- bool is_third_party_appid_done() const;
- bool is_third_party_appid_available() const;
+ bool is_tp_appid_done() const;
+ bool is_tp_appid_available() const;
private:
AppIdHttpSession* hsession = nullptr;
{
if ( p->flow->get_session_flags() & SSNFLAG_MIDSTREAM )
asd.client_disco_state = APPID_DISCO_STATE_FINISHED;
- else if ( asd.is_third_party_appid_available()
+ else if ( asd.is_tp_appid_available()
&& ( asd.tp_app_id > APP_ID_NONE && asd.tp_app_id < SF_APPID_MAX ) )
{
//tp has positively identified appId, Dig deeper only if sourcefire
asd.client_disco_state == APPID_DISCO_STATE_DIRECT) &&
asd.client_disco_state == prevRnaClientState &&
!asd.get_session_flags(APPID_SESSION_NO_TPI) &&
- asd.is_third_party_appid_available() &&
+ asd.is_tp_appid_available() &&
asd.tp_app_id > APP_ID_NONE && asd.tp_app_id < SF_APPID_MAX)
{
entry = asd.app_info_mgr->get_app_info_entry(asd.tp_app_id);
asd.service_disco_state = APPID_DISCO_STATE_FINISHED;
}
}
- else if (asd.is_third_party_appid_available())
+ else if (asd.is_tp_appid_available())
{
if (asd.tp_app_id > APP_ID_NONE)
{
if ( asd.service_disco_state == APPID_DISCO_STATE_STATEFUL &&
prevRnaServiceState == APPID_DISCO_STATE_STATEFUL &&
!asd.get_session_flags(APPID_SESSION_NO_TPI) &&
- asd.is_third_party_appid_available() &&
+ asd.is_tp_appid_available() &&
asd.tp_app_id > APP_ID_NONE && asd.tp_app_id < SF_APPID_MAX)
{
AppInfoTableEntry* entry = asd.app_info_mgr->get_app_info_entry(asd.tp_app_id);
return dsession;
}
-bool AppIdSession::is_third_party_appid_done() const
+bool AppIdSession::is_tp_appid_done() const
{
return true;
}
-bool AppIdSession::is_third_party_appid_available() const
+bool AppIdSession::is_tp_appid_available() const
{
return false;
}
return false;
}
-// FIXIT-L bogus placeholder for this func, need to find out what it should do
-static inline bool is_appid_done(const ThirdPartyAppIDSession* tpsession)
-{
- UNUSED(tpsession);
- return false;
-}
-
static inline bool check_reinspect(const Packet* p, const AppIdSession& asd)
{
return p->dsize && !asd.get_session_flags(APPID_SESSION_NO_TPI) &&
- asd.get_session_flags(APPID_SESSION_HTTP_SESSION) && is_appid_done(asd.tpsession);
+ asd.get_session_flags(APPID_SESSION_HTTP_SESSION) && asd.is_tp_appid_done();
}
static inline int check_ssl_appid_for_reinspect(AppId app_id)
/*** Start of third-party processing. ***/
if ( asd.config->have_tp()
&& !asd.get_session_flags(APPID_SESSION_NO_TPI)
- && (!is_appid_done(asd.tpsession)
+ && (!asd.is_tp_appid_done()
|| asd.get_session_flags(APPID_SESSION_APP_REINSPECT
| APPID_SESSION_APP_REINSPECT_SSL)))
{
if (asd.payload.get_id() == APP_ID_HTTP_SSL_TUNNEL)
snort_app_id = APP_ID_SSL;
- if (asd.is_third_party_appid_available() && asd.tp_app_id ==
+ if (asd.is_tp_appid_available() && asd.tp_app_id ==
APP_ID_HTTP
&& !asd.get_session_flags(APPID_SESSION_APP_REINSPECT))
{