@ -949,6 +949,8 @@ const char *PacketDropReasonToString(enum PacketDropReason r)
return " firewall pre stream hook " ;
return " firewall pre stream hook " ;
case PKT_DROP_REASON_FW_FLOW_PRE_HOOK :
case PKT_DROP_REASON_FW_FLOW_PRE_HOOK :
return " firewall pre flow hook " ;
return " firewall pre flow hook " ;
case PKT_DROP_REASON_FW_FLOW_DROP :
return " firewall flow drop " ;
case PKT_DROP_REASON_NOT_SET :
case PKT_DROP_REASON_NOT_SET :
case PKT_DROP_REASON_MAX :
case PKT_DROP_REASON_MAX :
return NULL ;
return NULL ;
@ -997,6 +999,8 @@ static const char *PacketDropReasonToJsonString(enum PacketDropReason r)
return " firewall.drop_reason.pre_stream_hook " ;
return " firewall.drop_reason.pre_stream_hook " ;
case PKT_DROP_REASON_FW_FLOW_PRE_HOOK :
case PKT_DROP_REASON_FW_FLOW_PRE_HOOK :
return " firewall.drop_reason.pre_flow_hook " ;
return " firewall.drop_reason.pre_flow_hook " ;
case PKT_DROP_REASON_FW_FLOW_DROP :
return " firewall.drop_reason.flow_drop " ;
case PKT_DROP_REASON_FW_DEFAULT_PACKET_POLICY :
case PKT_DROP_REASON_FW_DEFAULT_PACKET_POLICY :
return " firewall.drop_reason.default_packet_policy " ;
return " firewall.drop_reason.default_packet_policy " ;
case PKT_DROP_REASON_FW_DEFAULT_APP_POLICY :
case PKT_DROP_REASON_FW_DEFAULT_APP_POLICY :
@ -1039,6 +1043,7 @@ void CaptureStatsUpdate(ThreadVars *tv, const Packet *p)
return ;
return ;
CaptureStats * s = & t_capture_stats ;
CaptureStats * s = & t_capture_stats ;
if ( EngineModeIsFirewall ( ) ) {
if ( EngineModeIsFirewall ( ) ) {
/** The firewall mode and its stats counters should work as when there are two different
/** The firewall mode and its stats counters should work as when there are two different
* devices for the firewall control and the IPS control .
* devices for the firewall control and the IPS control .