|
suricata
|
Code in charge of protocol decoding. More...
Files | |
| file | decode-chdlc.c |
| file | decode-erspan.c |
| file | decode-esp.c |
| file | decode-etag.c |
| file | decode-ethernet.c |
| file | decode-gre.c |
| file | decode-icmpv4.c |
| file | decode-icmpv6.c |
| file | decode-ipv4.c |
| file | decode-ipv6.c |
| file | decode-nsh.c |
| file | decode-null.c |
| file | decode-ppp.c |
| file | decode-pppoe.c |
| file | decode-raw.c |
| file | decode-sctp.c |
| file | decode-sll.c |
| file | decode-sll2.c |
| file | decode-tcp.c |
| file | decode-template.c |
| file | decode-teredo.c |
| file | decode-udp.c |
| file | decode-vlan.c |
| file | decode-vntag.c |
| file | decode.c |
Data Structures | |
| struct | CaptureStats_ |
Typedefs | |
| typedef struct CaptureStats_ | CaptureStats |
Functions | |
| PacketAlert * | PacketAlertCreate (void) |
| Initialize PacketAlerts with dynamic alerts array size. More... | |
| void | PacketAlertRecycle (PacketAlert *pa_array, uint16_t cnt) |
| void | PacketAlertDropReset (Packet *p) |
Release the alert context the drop slot owns, then invalidate the slot. Not an alerts[] entry, so clearing action alone leaves it owning the chain; action is the guard consumers read, so a leaked slot still reads as empty. More... | |
| void | PacketAlertFree (PacketAlert *pa_array) |
| void | PacketFree (Packet *p) |
| Return a malloced packet. More... | |
| void | PacketDecodeFinalize (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p) |
| Finalize decoding of a packet. More... | |
| void | PacketUpdateEngineEventCounters (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p) |
| Packet * | PacketGetFromAlloc (void) |
| Get a malloced packet. More... | |
| void | PacketFreeOrRelease (Packet *p) |
| Return a packet to where it was allocated. More... | |
| Packet * | PacketGetFromQueueOrAlloc (void) |
| Get a packet. We try to get a packet from the packetpool first, but if that is empty we alloc a packet that is free'd again after processing. More... | |
| int | PacketCallocExtPkt (Packet *p, int datalen) |
| int | PacketCopyDataOffset (Packet *p, uint32_t offset, const uint8_t *data, uint32_t datalen) |
| Copy data to Packet payload at given offset. More... | |
| int | PacketCopyData (Packet *p, const uint8_t *pktdata, uint32_t pktlen) |
| Copy data to Packet payload and set packet length. More... | |
| void | PacketSetTunnelId (Packet *p, uint32_t session) |
| Packet * | PacketTunnelPktSetupWithSession (ThreadVars *tv, DecodeThreadVars *dtv, Packet *parent, const uint8_t *pkt, uint32_t len, enum SCPacketTunnelProto proto, uint32_t *session) |
| Packet * | PacketTunnelPktSetup (ThreadVars *tv, DecodeThreadVars *dtv, Packet *parent, const uint8_t *pkt, uint32_t len, enum SCPacketTunnelProto proto) |
| Setup a pseudo packet (tunnel) More... | |
| Packet * | PacketDefragPktSetup (Packet *parent, const uint8_t *pkt, uint32_t len, uint8_t proto) |
| Setup a pseudo packet (reassembled frags) More... | |
| void | PacketDefragPktSetupParent (Packet *parent) |
| inform defrag "parent" that a pseudo packet is now associated to it. More... | |
| void | PacketBypassCallback (Packet *p) |
| void | PacketSwap (Packet *p) |
| switch direction of a packet More... | |
| void | DecodeUnregisterCounters (void) |
| void | DecodeGlobalConfigDeinit (void) |
| void | DecodeRegisterPerfCounters (DecodeThreadVars *dtv, ThreadVars *tv) |
| void | DecodeUpdatePacketCounters (ThreadVars *tv, const DecodeThreadVars *dtv, const Packet *p) |
| void | AddressDebugPrint (Address *a) |
| Debug print function for printing addresses. More... | |
| DecodeThreadVars * | DecodeThreadVarsAlloc (ThreadVars *tv) |
| Alloc and setup DecodeThreadVars. More... | |
| void | DecodeThreadVarsFree (ThreadVars *tv, DecodeThreadVars *dtv) |
| int | PacketSetData (Packet *p, const uint8_t *pktdata, uint32_t pktlen) |
| Set data for Packet and set length when zero copy is used. More... | |
| const char * | PktSrcToString (enum PktSrcEnum pkt_src) |
| const char * | PacketDropReasonToString (enum PacketDropReason r) |
| void | CaptureStatsUpdate (ThreadVars *tv, const Packet *p) |
| void | CaptureStatsSetup (ThreadVars *tv) |
| void | DecodeGlobalConfig (void) |
| void | PacketAlertGetMaxConfig (void) |
| uint64_t | PcapPacketCntGet (const Packet *p) |
| void | PcapPacketCntSet (Packet *p, uint64_t pcap_cnt) |
Variables | |
| uint32_t | default_packet_size = 0 |
| bool | stats_decoder_events |
| const char * | stats_decoder_events_prefix |
| bool | stats_stream_events |
| uint8_t | decoder_max_layers = PKT_DEFAULT_MAX_DECODED_LAYERS |
| uint16_t | packet_alert_max = PACKET_ALERT_MAX |
| ExceptionPolicyStatsSetts | defrag_memcap_eps_stats |
| ExceptionPolicyStatsSetts | flow_memcap_eps_stats |
| thread_local CaptureStats | t_capture_stats |
Code in charge of protocol decoding.
The task of decoding packets is made in different files and as Suricata is supporting encapsulation there is a potential recursivity in the call.
For each protocol a DecodePROTO function is provided. For example we have DecodeIPV4() for IPv4 and DecodePPP() for PPP.
These functions have all a pkt and a len argument which are respectively a pointer to the protocol data and the length of this protocol data.
| typedef struct CaptureStats_ CaptureStats |
| void AddressDebugPrint | ( | Address * | a | ) |
Debug print function for printing addresses.
| Address | object |
Definition at line 873 of file decode.c.
References Address_::family, PrintInet(), and SCLogDebug.

| void CaptureStatsSetup | ( | ThreadVars * | tv | ) |
Definition at line 1178 of file decode.c.
References CaptureStats_::counter_ips_accepted, CaptureStats_::counter_ips_blocked, CaptureStats_::counter_ips_rejected, CaptureStats_::counter_ips_replaced, EngineModeIsIPS(), name, PKT_DROP_REASON_NON_FW_MAX, PKT_DROP_REASON_NOT_SET, ThreadVars_::stats, StatsRegisterCounter(), t_capture_stats, and tv.

| void CaptureStatsUpdate | ( | ThreadVars * | tv, |
| const Packet * | p | ||
| ) |
The firewall mode and its stats counters should work as when there are two different devices for the firewall control and the IPS control. As such, if the firewall blocks a packet, it won't reach the IPS level of evaluation, so won't be counted in either stats. When the firewall accepts a packet, it can still be blocked, rejected or accepted by IPS rules and policies.
Definition at line 1126 of file decode.c.
References ACTION_REJECT_ANY, EngineModeIsFirewall(), EngineModeIsIPS(), p, PacketCheckAction(), PKT_IS_PSEUDOPKT, t_capture_stats, and unlikely.

| void DecodeGlobalConfig | ( | void | ) |
Definition at line 1204 of file decode.c.
References DecodeERSPANConfig(), DecodeGeneveConfig(), DecodeTeredoConfig(), and DecodeVXLANConfig().

| void DecodeGlobalConfigDeinit | ( | void | ) |
Definition at line 672 of file decode.c.
Referenced by GlobalsDestroy().

| void DecodeRegisterPerfCounters | ( | DecodeThreadVars * | dtv, |
| ThreadVars * | tv | ||
| ) |
Definition at line 694 of file decode.c.
References DecodeThreadVars_::counter_arp, DecodeThreadVars_::counter_avg_pkt_size, DecodeThreadVars_::counter_bytes, DecodeThreadVars_::counter_chdlc, DecodeThreadVars_::counter_erspan, DecodeThreadVars_::counter_esp, DecodeThreadVars_::counter_etag, DecodeThreadVars_::counter_eth, DecodeThreadVars_::counter_ethertype_unknown, DecodeThreadVars_::counter_flow_memcap, DecodeThreadVars_::counter_flow_memcap_eps, DecodeThreadVars_::counter_geneve, DecodeThreadVars_::counter_gre, DecodeThreadVars_::counter_icmpv4, DecodeThreadVars_::counter_icmpv6, DecodeThreadVars_::counter_ieee8021ah, DecodeThreadVars_::counter_igmp, DecodeThreadVars_::counter_invalid, DecodeThreadVars_::counter_ipv4, DecodeThreadVars_::counter_ipv4_unknown_proto, DecodeThreadVars_::counter_ipv4inipv4, DecodeThreadVars_::counter_ipv4inipv6, DecodeThreadVars_::counter_ipv6, DecodeThreadVars_::counter_ipv6inipv4, DecodeThreadVars_::counter_ipv6inipv6, DecodeThreadVars_::counter_max_mac_addrs_dst, DecodeThreadVars_::counter_max_mac_addrs_src, DecodeThreadVars_::counter_max_pkt_size, DecodeThreadVars_::counter_mpls, DecodeThreadVars_::counter_nsh, DecodeThreadVars_::counter_null, DecodeThreadVars_::counter_pkts, DecodeThreadVars_::counter_ppp, DecodeThreadVars_::counter_pppoe, DecodeThreadVars_::counter_raw, DecodeThreadVars_::counter_sctp, DecodeThreadVars_::counter_sctp_abort, DecodeThreadVars_::counter_sctp_data, DecodeThreadVars_::counter_sctp_init, DecodeThreadVars_::counter_sctp_init_ack, DecodeThreadVars_::counter_sctp_shutdown, DecodeThreadVars_::counter_sll, DecodeThreadVars_::counter_sll2, DecodeThreadVars_::counter_tcp, DecodeThreadVars_::counter_tcp_rst, DecodeThreadVars_::counter_tcp_syn, DecodeThreadVars_::counter_tcp_synack, DecodeThreadVars_::counter_tcp_urg, DecodeThreadVars_::counter_teredo, DecodeThreadVars_::counter_udp, DecodeThreadVars_::counter_vlan, DecodeThreadVars_::counter_vlan_qinq, DecodeThreadVars_::counter_vlan_qinqinq, DecodeThreadVars_::counter_vntag, DecodeThreadVars_::counter_vxlan, dtv, ExceptionPolicySetStatsCounters(), flow_memcap_eps_stats, FlowGetMemcapExceptionPolicy(), ThreadVars_::stats, StatsRegisterCounter(), StatsRegisterDeriveDivCounter(), StatsRegisterMaxCounter(), and tv.
Referenced by DecodeErfDagThreadInit().


| DecodeThreadVars* DecodeThreadVarsAlloc | ( | ThreadVars * | tv | ) |
Alloc and setup DecodeThreadVars.
Definition at line 890 of file decode.c.
References DecodeThreadVars_::app_tctx, AppLayerGetCtxThread(), DecodeThreadVarsFree(), dtv, DecodeThreadVars_::output_flow_thread_data, OutputFlowLogThreadInit(), SCCalloc, SCLogError, TM_ECODE_OK, and tv.
Referenced by DecodeErfDagThreadInit().


| void DecodeThreadVarsFree | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv | ||
| ) |
Definition at line 908 of file decode.c.
References DecodeThreadVars_::app_tctx, AppLayerDestroyCtxThread(), dtv, DecodeThreadVars_::output_flow_thread_data, OutputFlowLogThreadDeinit(), SCFree, and tv.
Referenced by DecodeErfDagThreadDeinit(), and DecodeThreadVarsAlloc().


| void DecodeUnregisterCounters | ( | void | ) |
Definition at line 662 of file decode.c.
References SCMutexLock.
| void DecodeUpdatePacketCounters | ( | ThreadVars * | tv, |
| const DecodeThreadVars * | dtv, | ||
| const Packet * | p | ||
| ) |
Definition at line 858 of file decode.c.
References DecodeThreadVars_::counter_bytes, DecodeThreadVars_::counter_max_pkt_size, DecodeThreadVars_::counter_pkts, dtv, GET_PKT_LEN, p, ThreadVars_::stats, StatsCounterAddI64(), StatsCounterIncr(), StatsCounterMaxUpdateI64(), and tv.
Referenced by DecodeErfDag().


| PacketAlert* PacketAlertCreate | ( | void | ) |
Initialize PacketAlerts with dynamic alerts array size.
Definition at line 144 of file decode.c.
References packet_alert_max, and SCCalloc.
Referenced by PacketInit().

| void PacketAlertDropReset | ( | Packet * | p | ) |
Release the alert context the drop slot owns, then invalidate the slot. Not an alerts[] entry, so clearing action alone leaves it owning the chain; action is the guard consumers read, so a leaked slot still reads as empty.
Definition at line 170 of file decode.c.
References PacketAlert_::action, Packet_::alerts, PacketAlerts_::drop, p, and PacketAlertRecycle().

| void PacketAlertFree | ( | PacketAlert * | pa_array | ) |
Definition at line 176 of file decode.c.
References PacketAlert_::json_info, PacketContextData::json_string, PacketContextData::next, packet_alert_max, and SCFree.
Referenced by PacketDestructor().

| void PacketAlertGetMaxConfig | ( | void | ) |
Definition at line 1225 of file decode.c.
References packet_alert_max, SCConfGetInt(), SCLogDebug, and SCLogWarning.

| void PacketAlertRecycle | ( | PacketAlert * | pa_array, |
| uint16_t | cnt | ||
| ) |
Definition at line 149 of file decode.c.
References cnt, PacketAlert_::json_info, PacketContextData::json_string, PacketContextData::next, and SCFree.
Referenced by PacketAlertDropReset(), and PacketDestructor().

| void PacketBypassCallback | ( | Packet * | p | ) |
Definition at line 590 of file decode.c.
References Packet_::BypassPacketsFlow, Packet_::flow, Flow_::flow_state, FLOW_STATE_LOCAL_BYPASSED, FlowUpdateState(), GetFlowBypassInfoID(), p, PKT_IS_PSEUDOPKT, SCCalloc, SCFlowGetStorageById(), and SCFlowSetStorageById().

|
inline |
Definition at line 324 of file decode.c.
References Packet_::ext_pkt, p, SCCalloc, SET_PKT_LEN, and unlikely.
|
inline |
Copy data to Packet payload and set packet length.
| Pointer | to the Packet to modify |
| Pointer | to the data to copy |
| Length | of the data to copy |
Definition at line 396 of file decode.c.
References p, PacketCopyDataOffset(), and SET_PKT_LEN.
Referenced by PacketTunnelPktSetupWithSession().


|
inline |
Copy data to Packet payload at given offset.
This function copies data/payload to a Packet. It uses the space allocated at Packet creation (pointed by Packet::pkt) or allocate some memory (pointed by Packet::ext_pkt) if the data size is to big to fit in initial space (of size default_packet_size).
| Pointer | to the Packet to modify |
| Offset | of the copy relatively to payload of Packet |
| Pointer | to the data to copy |
| Length | of the data to copy |
Definition at line 350 of file decode.c.
References default_packet_size, Packet_::ext_pkt, GET_PKT_DIRECT_DATA, GET_PKT_DIRECT_MAX_SIZE, MAX_PAYLOAD_SIZE, offset, p, SCMalloc, SET_PKT_LEN, and unlikely.
Referenced by PacketCopyData().

| void PacketDecodeFinalize | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | p | ||
| ) |
Finalize decoding of a packet.
This function needs to be call at the end of decode functions when decoding has been successful.
Definition at line 244 of file decode.c.
References DecodeThreadVars_::counter_invalid, dtv, Packet_::flags, p, PKT_IS_INVALID, ThreadVars_::stats, StatsCounterIncr(), and tv.
Referenced by DecodeErfDag().


Setup a pseudo packet (reassembled frags)
Difference with PacketPseudoPktSetup is that this func doesn't increment the recursion level. It needs to be on the same level as the frags because we run the flow engine against this and we need to get the same flow.
| parent | parent packet for this pseudo pkt |
| pkt | raw packet data |
| len | packet data length |
| proto | protocol of the tunneled packet |
| p | the pseudo packet or NULL if out of memory |
Definition at line 522 of file decode.c.
References BUG_ON, p, PacketGetFromQueueOrAlloc(), Packet_::root, SCEnter, SCReturnPtr, and unlikely.

| void PacketDefragPktSetupParent | ( | Packet * | parent | ) |
inform defrag "parent" that a pseudo packet is now associated to it.
Definition at line 572 of file decode.c.
References PacketTunnelNone, PacketTunnelRoot, and Packet_::ttype.
| const char* PacketDropReasonToString | ( | enum PacketDropReason | r | ) |
Definition at line 989 of file decode.c.
References PKT_DROP_REASON_APPLAYER_ERROR, PKT_DROP_REASON_APPLAYER_MEMCAP, PKT_DROP_REASON_DECODE_ERROR, PKT_DROP_REASON_DEFRAG_ERROR, PKT_DROP_REASON_DEFRAG_MEMCAP, PKT_DROP_REASON_EP_FLOW_DROP, PKT_DROP_REASON_FLOW_DROP, PKT_DROP_REASON_FLOW_MEMCAP, PKT_DROP_REASON_FW_DEFAULT_APP_POLICY, PKT_DROP_REASON_FW_DEFAULT_PACKET_POLICY, PKT_DROP_REASON_FW_FLOW_DROP, PKT_DROP_REASON_FW_FLOW_PRE_HOOK, PKT_DROP_REASON_FW_RULES, PKT_DROP_REASON_FW_STREAM_PRE_HOOK, PKT_DROP_REASON_INNER_PACKET, PKT_DROP_REASON_MAX, PKT_DROP_REASON_NFQ_ERROR, PKT_DROP_REASON_NOT_SET, PKT_DROP_REASON_RULES, PKT_DROP_REASON_RULES_THRESHOLD, PKT_DROP_REASON_STREAM_ERROR, PKT_DROP_REASON_STREAM_MEMCAP, PKT_DROP_REASON_STREAM_MIDSTREAM, PKT_DROP_REASON_STREAM_REASSEMBLY, and PKT_DROP_REASON_STREAM_URG.
| void PacketFree | ( | Packet * | p | ) |
Return a malloced packet.
Definition at line 231 of file decode.c.
References p, PacketDestructor(), and SCFree.
Referenced by PacketFreeOrRelease(), PacketGetFromAlloc(), and UTHFreePacket().


| void PacketFreeOrRelease | ( | Packet * | p | ) |
Return a packet to where it was allocated.
Definition at line 291 of file decode.c.
References likely, p, PacketFree(), PacketPoolReturnPacket(), Packet_::pool, and Packet_::ReleasePacket.
Referenced by PcapFileReleasePseudoPacket().


| Packet* PacketGetFromAlloc | ( | void | ) |
Get a malloced packet.
| p | packet, NULL on error |
Definition at line 270 of file decode.c.
References p, PACKET_PROFILING_START, PacketFree(), PacketInit(), Packet_::ReleasePacket, SCCalloc, SCFree, SCLogDebug, SIZE_OF_PACKET, and unlikely.
Referenced by PacketGetFromQueueOrAlloc(), UTHBuildPacketFromEth(), UTHBuildPacketIPV6Real(), and UTHBuildPacketReal().


| Packet* PacketGetFromQueueOrAlloc | ( | void | ) |
Get a packet. We try to get a packet from the packetpool first, but if that is empty we alloc a packet that is free'd again after processing.
| p | packet, NULL on error |
Definition at line 308 of file decode.c.
References DEBUG_VALIDATE_BUG_ON, p, PACKET_PROFILING_START, PacketGetFromAlloc(), PacketPoolGetPacket(), PacketPoolReturnPacket(), and Packet_::ReleasePacket.
Referenced by PacketDefragPktSetup(), PacketTunnelPktSetupWithSession(), and ReceiveErfFileLoop().


|
inline |
Set data for Packet and set length when zero copy is used.
| Pointer | to the Packet to modify |
| Pointer | to the data |
| Length | of the data |
Definition at line 928 of file decode.c.
References Packet_::ext_pkt, Packet_::flags, p, PKT_ZERO_COPY, SET_PKT_LEN, and unlikely.
| void PacketSetTunnelId | ( | Packet * | p, |
| uint32_t | session | ||
| ) |
Definition at line 404 of file decode.c.
References p, and Packet_::tunnel_id.
| void PacketSwap | ( | Packet * | p | ) |
switch direction of a packet
Definition at line 637 of file decode.c.
References FLOW_PKT_TOCLIENT, FLOW_PKT_TOCLIENT_FIRST, FLOW_PKT_TOSERVER, FLOW_PKT_TOSERVER_FIRST, Packet_::flowflags, p, and PKT_IS_TOSERVER.
| Packet* PacketTunnelPktSetup | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | parent, | ||
| const uint8_t * | pkt, | ||
| uint32_t | len, | ||
| enum SCPacketTunnelProto | proto | ||
| ) |
Setup a pseudo packet (tunnel)
| parent | parent packet for this pseudo pkt |
| pkt | raw packet data |
| len | packet data length |
| proto | protocol of the tunneled packet |
| p | the pseudo packet or NULL if out of memory |
Definition at line 502 of file decode.c.
References dtv, len, PacketTunnelPktSetupWithSession(), proto, and tv.

| Packet* PacketTunnelPktSetupWithSession | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | parent, | ||
| const uint8_t * | pkt, | ||
| uint32_t | len, | ||
| enum SCPacketTunnelProto | proto, | ||
| uint32_t * | session | ||
| ) |
Definition at line 421 of file decode.c.
References BUG_ON, Packet_::datalink, DEBUG_VALIDATE_BUG_ON, decoder_max_layers, DLT_RAW, ENGINE_SET_INVALID_EVENT, GENERIC_TOO_MANY_LAYERS, len, Packet_::livedev_id, Packet_::nb_decoded_layers, p, PacketCopyData(), PacketGetFromQueueOrAlloc(), Packet_::recursion_level, Packet_::root, SCEnter, SCReturnPtr, Packet_::tenant_id, Packet_::ts, and unlikely.
Referenced by PacketTunnelPktSetup().


| void PacketUpdateEngineEventCounters | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | p | ||
| ) |
Definition at line 251 of file decode.c.
References PacketEngineEvents_::cnt, DecodeThreadVars_::counter_engine_events, DECODE_EVENT_PACKET_MAX, dtv, PacketEngineEvents_::events, Packet_::events, p, ThreadVars_::stats, stats_decoder_events, stats_stream_events, StatsCounterIncr(), and tv.

|
inline |
Definition at line 1244 of file decode.c.
Referenced by DetectPreFlow(), DetectPreStream(), DetectRunPrefilterFrame(), DetectRunPrefilterTx(), EveAddVerdict(), ExceptionPolicyParse(), FlowHandlePacketUpdate(), StreamTcp(), and StreamTcpPacket().

|
inline |
| const char* PktSrcToString | ( | enum PktSrcEnum | pkt_src | ) |
Definition at line 941 of file decode.c.
References DEBUG_VALIDATE_BUG_ON, PKT_SRC_CAPTURE_TIMEOUT, PKT_SRC_DECODER_GENEVE, PKT_SRC_DECODER_GRE, PKT_SRC_DECODER_IPV4, PKT_SRC_DECODER_IPV6, PKT_SRC_DECODER_TEREDO, PKT_SRC_DECODER_VXLAN, PKT_SRC_DEFRAG, PKT_SRC_DETECT_RELOAD_FLUSH, PKT_SRC_FFR, PKT_SRC_SHUTDOWN_FLUSH, PKT_SRC_STREAM_TCP_DETECTLOG_FLUSH, and PKT_SRC_WIRE.
Referenced by StreamTcp().

| uint8_t decoder_max_layers = PKT_DEFAULT_MAX_DECODED_LAYERS |
Definition at line 81 of file decode.c.
Referenced by PacketTunnelPktSetupWithSession().
| uint32_t default_packet_size = 0 |
Definition at line 77 of file decode.c.
Referenced by PacketCopyDataOffset(), and RunUnittests().
| ExceptionPolicyStatsSetts defrag_memcap_eps_stats |
| ExceptionPolicyStatsSetts flow_memcap_eps_stats |
Definition at line 114 of file decode.c.
Referenced by DecodeRegisterPerfCounters().
| uint16_t packet_alert_max = PACKET_ALERT_MAX |
Definition at line 82 of file decode.c.
Referenced by AlertQueueInit(), PacketAlertCreate(), PacketAlertFree(), and PacketAlertGetMaxConfig().
| bool stats_decoder_events |
Definition at line 96 of file counters.c.
Referenced by PacketUpdateEngineEventCounters().
| const char* stats_decoder_events_prefix |
add stream events as stats? disabled by default
Definition at line 97 of file counters.c.
| bool stats_stream_events |
Definition at line 99 of file counters.c.
Referenced by PacketUpdateEngineEventCounters().
| thread_local CaptureStats t_capture_stats |
Definition at line 1113 of file decode.c.
Referenced by CaptureStatsSetup(), and CaptureStatsUpdate().