Pending - build 143
+-- apply service from hosts when inspector already bound to flow
-- ensure direction and service are applied to packet regardless of flow state
-- enable active for react / reject only if used in configuration
-- fixed use of bound ip and tcp policy if not set in hosts
flow->clouseau = nullptr;
}
-static Inspector* get_gadget(Flow* flow, const HostAttributeEntry* host)
+static void set_service(Flow* flow, const HostAttributeEntry* host)
{
stream.set_application_protocol_id_from_host_entry(flow, host, SSN_DIR_FROM_SERVER);
+}
+static Inspector* get_gadget(Flow* flow)
+{
if ( !flow->ssn_state.application_protocol )
return nullptr;
if ( data )
flow->set_data(data);
- if ( host && !gadget )
- gadget = get_gadget(flow, host);
+ if ( host )
+ set_service(flow, host);
+
+ if ( !gadget )
+ gadget = get_gadget(flow);
if ( gadget )
flow->set_gadget(gadget);