suricata
|
#include <decode.h>
union { ... } |
union { ... } |
union { ... } |
union { ... } |
uint8_t Packet_::action |
Definition at line 577 of file decode.h.
Referenced by PacketCheckAction(), PacketDrop(), and TmqhOutputPacketpool().
PacketAlerts Packet_::alerts |
Definition at line 588 of file decode.h.
Referenced by AlertFastLogCondition(), AlertFastLogger(), AlertQueueAppend(), PacketAlertCheck(), PacketDestructor(), PacketInit(), and PacketReinit().
AppLayerDecoderEvents* Packet_::app_layer_events |
Definition at line 600 of file decode.h.
Referenced by PacketCreateMask(), PacketDestructor(), and PacketReinit().
int(* Packet_::BypassPacketsFlow) (struct Packet_ *) |
The function triggering bypass the flow in the capture method. Return 1 for success and 0 on error
Definition at line 518 of file decode.h.
Referenced by PacketBypassCallback(), PacketReinit(), and ReceivePfringLoop().
int Packet_::datalink |
data linktype in host order
Definition at line 607 of file decode.h.
Referenced by DecodeErfDag(), EvePacket(), NapatechDecode(), PacketDefragPktSetup(), PacketReinit(), and PacketTunnelPktSetup().
Port Packet_::dp |
Definition at line 443 of file decode.h.
Referenced by AlertFastLogger(), FlowGetPacketDirection(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), TLSGetIPInformations(), and UTHBuildPacketIPV6Real().
uint8_t Packet_::drop_reason |
Definition at line 615 of file decode.h.
Referenced by PacketDrop(), and PacketReinit().
Address Packet_::dst |
Definition at line 433 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), IPOnlyMatchPacket(), PacketReinit(), TagHashAddTag(), TmqhOutputFlowIPPair(), UTHBuildPacketIPV6Real(), and UTHBuildPacketOfFlows().
ESPHdr* Packet_::esph |
Definition at line 559 of file decode.h.
Referenced by PacketReinit().
EthernetHdr* Packet_::ethh |
Definition at line 524 of file decode.h.
Referenced by PacketReinit().
PacketEngineEvents Packet_::events |
Definition at line 598 of file decode.h.
Referenced by PacketCreateMask(), PacketReinit(), PacketUpdateEngineEventCounters(), and SigMatchSignaturesGetSgh().
uint8_t* Packet_::ext_pkt |
Definition at line 583 of file decode.h.
Referenced by PacketCallocExtPkt(), PacketCopyDataOffset(), and PacketSetData().
uint32_t Packet_::flags |
Definition at line 463 of file decode.h.
Referenced by CaptureStatsUpdate(), DetectReplaceExecuteInternal(), FlowHandlePacket(), FlowSetupPacket(), IPOnlyMatchPacket(), PacketCreateMask(), PacketDecodeFinalize(), PacketReinit(), PacketSetData(), Prefilter(), SCProfileRuleStart(), StreamTcpInlineSegmentReplacePacket(), StreamTcpReassembleAppLayer(), StreamTcpReassembleHandleSegment(), TmqhOutputFlowHash(), and UTHAssignFlow().
struct Flow_* Packet_::flow |
Definition at line 465 of file decode.h.
Referenced by CreateEveHeader(), DetectEngineInspectPktBufferGeneric(), DetectFlowintMatch(), DetectFlowvarMatch(), DetectRunPrefilterTx(), ExceptionPolicyParse(), FlowHandlePacket(), PacketBypassCallback(), Prefilter(), RulesDumpMatchArray(), RulesDumpTxMatchArray(), SigMatchSignatures(), StreamTcp(), StreamTcpPacket(), StreamTcpReassembleAppLayer(), StreamTcpReassembleDepthReached(), StreamTcpReassembleHandleSegment(), StreamTcpSessionPktFree(), TagFlowAdd(), TagHandlePacket(), TmqhReleasePacketsToPacketPool(), TmThreadsSlotVarRun(), UTHAssignFlow(), and UTHBuildPacketOfFlows().
uint32_t Packet_::flow_hash |
Definition at line 469 of file decode.h.
Referenced by FlowGetFlowFromHash(), FlowSetupPacket(), and TmqhOutputFlowHash().
uint8_t Packet_::flowflags |
Definition at line 459 of file decode.h.
Referenced by AppLayerHandleUdp(), DetectFlowMatch(), FlowHandlePacketUpdate(), PacketReinit(), PacketSwap(), SigMatchSignaturesGetSgh(), and StreamTcpReassembleDepthReached().
GREHdr* Packet_::greh |
Definition at line 569 of file decode.h.
Referenced by PacketReinit().
struct { ... } Packet_::icmp_d |
Referenced by DecodeICMPV4(), and DecodeICMPV6().
struct { ... } Packet_::icmp_s |
Referenced by AlertFastLogger(), DecodeICMPV4(), DecodeICMPV6(), and FlowInit().
ICMPV4Hdr* Packet_::icmpv4h |
Definition at line 561 of file decode.h.
Referenced by DecodeICMPV4(), FlowInit(), and PacketReinit().
ICMPV4Vars Packet_::icmpv4vars |
Definition at line 546 of file decode.h.
Referenced by DecodeICMPV4().
ICMPV6Hdr* Packet_::icmpv6h |
Definition at line 563 of file decode.h.
Referenced by DecodeICMPV6(), and PacketReinit().
ICMPV6Vars Packet_::icmpv6vars |
IPV4Hdr* Packet_::ip4h |
Definition at line 531 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), PacketReinit(), and UTHFreePacket().
IPV6ExtHdrs Packet_::ip6eh |
Definition at line 540 of file decode.h.
Referenced by DecodeIPV6FragHeader().
IPV6Hdr* Packet_::ip6h |
Definition at line 533 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), PacketReinit(), and UTHBuildPacketIPV6Real().
IPFWPacketVars Packet_::ipfw_v |
union { ... } Packet_::l4vars |
struct LiveDevice_* Packet_::livedev |
Definition at line 586 of file decode.h.
Referenced by FlowInit(), PacketDefragPktSetup(), PacketInit(), PacketReinit(), and PacketTunnelPktSetup().
uint8_t Packet_::nb_decoded_layers |
Definition at line 612 of file decode.h.
Referenced by PacketReinit(), and PacketTunnelPktSetup().
struct Packet_* Packet_::next |
Definition at line 603 of file decode.h.
Referenced by PacketReinit().
NFQPacketVars Packet_::nfq_v |
NapatechPacketVars Packet_::ntpv |
uint8_t* Packet_::payload |
Definition at line 573 of file decode.h.
Referenced by DecodeICMPV6(), DetectEngineInspectPacketPayload(), PacketReinit(), StreamTcpInlineSegmentCompare(), StreamTcpInlineSegmentReplacePacket(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), and UTHBuildPacketIPV6Real().
uint16_t Packet_::payload_len |
Definition at line 574 of file decode.h.
Referenced by DecodeICMPV6(), DetectEngineInspectPacketPayload(), PacketCreateMask(), PacketReinit(), Prefilter(), StreamTcpInlineSegmentCompare(), StreamTcpInlineSegmentReplacePacket(), StreamTcpReassembleHandleSegment(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), and UTHBuildPacketIPV6Real().
uint64_t Packet_::pcap_cnt |
packet number in the pcap file, matches wireshark
Definition at line 594 of file decode.h.
Referenced by AlertFastLogger(), DetectRunPrefilterFrame(), DetectRunPrefilterTx(), ExceptionPolicyParse(), FlowHandlePacketUpdate(), PacketReinit(), StreamTcp(), StreamTcpPacket(), and StreamTcpSackUpdatePacket().
PcapPacketVars Packet_::pcap_v |
struct { ... } Packet_::persistent |
Referenced by PacketDestructor(), PacketInit(), and TmqhOutputPacketpool().
uint8_t Packet_::pkt_src |
Definition at line 579 of file decode.h.
Referenced by PacketReinit(), and StreamTcp().
PktVar* Packet_::pktvar |
Definition at line 521 of file decode.h.
Referenced by EveAddMetadata(), PacketDestructor(), PacketReinit(), PktVarAdd(), PktVarAddKeyValue(), and PktVarGet().
uint8_t Packet_::plugin_v[PLUGIN_VAR_SIZE] |
struct PktPool_* Packet_::pool |
Definition at line 635 of file decode.h.
Referenced by PacketFreeOrRelease(), TmqhOutputPacketpool(), and TmqhOutputSimple().
PPPHdr* Packet_::ppph |
Definition at line 565 of file decode.h.
Referenced by PacketReinit().
PPPOEDiscoveryHdr* Packet_::pppoedh |
Definition at line 567 of file decode.h.
Referenced by DecodePPPOEDiscovery(), and PacketReinit().
PPPOESessionHdr* Packet_::pppoesh |
Definition at line 566 of file decode.h.
Referenced by DecodePPPOESession(), and PacketReinit().
struct Packet_* Packet_::prev |
Definition at line 604 of file decode.h.
Referenced by PacketReinit().
PktProfiling* Packet_::profile |
Definition at line 638 of file decode.h.
Referenced by SCProfileRuleStart(), and SCProfilingAddPacket().
uint8_t Packet_::proto |
Definition at line 450 of file decode.h.
Referenced by DecodeICMPV4(), DecodeICMPV6(), DetectEngineInspectFrameBufferGeneric(), DetectEngineInspectStream(), FlowGetIpPairProtoHash(), FlowGetPacketDirection(), FlowInit(), FrameJsonLogOneFrame(), FramesPrune(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), Prefilter(), SigMatchSignaturesGetSgh(), StreamSegmentForEach(), StreamSegmentForSession(), TcpSessionPacketSsnReuse(), UTHBuildPacketIPV6Real(), and UTHFreePacket().
uint8_t Packet_::recursion_level |
Definition at line 453 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), FlowInit(), PacketDefragPktSetup(), PacketReinit(), and PacketTunnelPktSetup().
void(* Packet_::ReleasePacket) (struct Packet_ *) |
The release function for packet structure and data
Definition at line 515 of file decode.h.
Referenced by PacketFreeOrRelease(), PacketGetFromAlloc(), PacketGetFromQueueOrAlloc(), and TmqhOutputPacketpool().
struct Packet_* Packet_::root |
Definition at line 618 of file decode.h.
Referenced by PacketCheckAction(), PacketDefragPktSetup(), PacketDrop(), PacketReinit(), PacketTunnelPktSetup(), TmqhOutputPacketpool(), and TmqhOutputSimple().
SCTPHdr* Packet_::sctph |
Definition at line 557 of file decode.h.
Referenced by PacketReinit().
Port Packet_::sp |
Definition at line 435 of file decode.h.
Referenced by AlertFastLogger(), FlowGetPacketDirection(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), TLSGetIPInformations(), and UTHBuildPacketIPV6Real().
Address Packet_::src |
Definition at line 432 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), FlowGetPacketDirection(), IPOnlyMatchPacket(), PacketReinit(), TagHashAddTag(), TmqhOutputFlowIPPair(), UTHBuildPacketIPV6Real(), and UTHBuildPacketOfFlows().
TCPHdr* Packet_::tcph |
Definition at line 553 of file decode.h.
Referenced by FlowInit(), PacketCreateMask(), PacketReinit(), ReCalculateChecksum(), StreamTcpPacket(), StreamTcpReassembleHandleSegment(), StreamTcpUTAddPayload(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), TcpSessionPacketSsnReuse(), UTHBuildPacketIPV6Real(), and UTHFreePacket().
uint32_t Packet_::tenant_id |
tenant id for this packet, if any. If 0 then no tenant was assigned.
Definition at line 630 of file decode.h.
Referenced by AlertJsonHeader(), Detect(), PacketDefragPktSetup(), PacketReinit(), and PacketTunnelPktSetup().
SCTime_t Packet_::ts |
Definition at line 471 of file decode.h.
Referenced by AlertFastLogger(), CreateEveHeader(), FlowHandlePacketUpdate(), PacketDefragPktSetup(), PacketReinit(), PacketTunnelPktSetup(), and UTHBuildPacketIPV6Real().
SCSpinlock Packet_::tunnel_lock |
lock to protect access to:
Definition at line 648 of file decode.h.
Referenced by PacketDestructor(), PacketInit(), and TmqhOutputPacketpool().
uint16_t Packet_::tunnel_rtv_cnt |
Definition at line 625 of file decode.h.
Referenced by PacketReinit().
uint16_t Packet_::tunnel_tpr_cnt |
Definition at line 627 of file decode.h.
Referenced by PacketReinit().
UDPHdr* Packet_::udph |
Definition at line 555 of file decode.h.
Referenced by FlowInit(), PacketReinit(), and UTHFreePacket().
uint16_t Packet_::vlan_id[2] |
Definition at line 455 of file decode.h.
Referenced by DecodeVLANGetId(), FlowGetIpPairProtoHash(), FlowInit(), PacketDefragPktSetup(), and PacketReinit().
uint8_t Packet_::vlan_idx |
Definition at line 456 of file decode.h.
Referenced by DecodePfring(), DecodeVLAN(), DecodeVLANGetId(), FlowInit(), PacketDefragPktSetup(), and PacketReinit().