Squashed commit of the following:
commit
7bf244eaf487f78289c03b8fbfe16772cd872249
Author: kamurthi <kamurthi@cisco.com>
Date: Tue Sep 8 09:24:44 2020 -0400
appid: Use third party payload if available for HTTP tunneled.
if (!api.hsessions.empty())
tmp_id = api.hsessions[0]->payload.get_id();
if (tmp_id > APP_ID_NONE)
- return tmp_id;
+ {
+ if (tmp_id == APP_ID_HTTP_TUNNEL and tp_payload_app_id > APP_ID_NONE)
+ return tp_payload_app_id;
+ else
+ return tmp_id;
+ }
if (api.payload.get_id() > APP_ID_NONE)
return api.payload.get_id();
// Verify detector user data and that we are in packet context
ud->validate_lua_state(true);
+ if (!ud->get_odp_ctxt().is_host_port_app_cache_runtime)
+ return 0;
+
SfIp ip_addr;
int index = 1;