suricata
|
#include <decode.h>
union { ... } |
union { ... } |
union { ... } |
union { ... } |
uint8_t Packet_::action |
Definition at line 581 of file decode.h.
Referenced by PacketCheckAction(), PacketDrop(), and TmqhOutputPacketpool().
PacketAlerts Packet_::alerts |
Definition at line 592 of file decode.h.
Referenced by AlertFastLogCondition(), AlertFastLogger(), AlertQueueAppend(), EveAddVerdict(), PacketAlertCheck(), PacketDestructor(), PacketInit(), and PacketReinit().
AppLayerDecoderEvents* Packet_::app_layer_events |
Definition at line 604 of file decode.h.
Referenced by PacketCreateMask(), PacketDestructor(), and PacketReinit().
uint8_t Packet_::app_update_direction |
Definition at line 464 of file decode.h.
Referenced by 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 522 of file decode.h.
Referenced by PacketBypassCallback(), PacketReinit(), and ReceivePfringLoop().
int Packet_::datalink |
data linktype in host order
Definition at line 611 of file decode.h.
Referenced by DecodeErfDag(), EvePacket(), NapatechDecode(), PacketDefragPktSetup(), PacketReinit(), and PacketTunnelPktSetup().
Port Packet_::dp |
Definition at line 445 of file decode.h.
Referenced by AlertFastLogger(), FlowGetPacketDirection(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), TLSGetIPInformations(), and UTHBuildPacketIPV6Real().
uint8_t Packet_::drop_reason |
Definition at line 619 of file decode.h.
Referenced by CaptureStatsUpdate(), PacketDrop(), and PacketReinit().
Address Packet_::dst |
Definition at line 435 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), IPOnlyMatchPacket(), PacketReinit(), TagHashAddTag(), TmqhOutputFlowIPPair(), UTHBuildPacketIPV6Real(), and UTHBuildPacketOfFlows().
ESPHdr* Packet_::esph |
Definition at line 563 of file decode.h.
Referenced by PacketReinit().
EthernetHdr* Packet_::ethh |
Definition at line 528 of file decode.h.
Referenced by PacketReinit().
PacketEngineEvents Packet_::events |
Definition at line 602 of file decode.h.
Referenced by PacketCreateMask(), PacketReinit(), PacketUpdateEngineEventCounters(), and SigMatchSignaturesGetSgh().
uint8_t* Packet_::ext_pkt |
Definition at line 587 of file decode.h.
Referenced by PacketCallocExtPkt(), PacketCopyDataOffset(), and PacketSetData().
uint32_t Packet_::flags |
Definition at line 467 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 469 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(), TmThreadsProcessDecodePseudoPackets(), TmThreadsSlotVarRun(), UTHAssignFlow(), and UTHBuildPacketOfFlows().
uint32_t Packet_::flow_hash |
Definition at line 473 of file decode.h.
Referenced by FlowGetFlowFromHash(), FlowSetupPacket(), and TmqhOutputFlowHash().
uint8_t Packet_::flowflags |
Definition at line 461 of file decode.h.
Referenced by AppLayerHandleUdp(), DetectFlowMatch(), FlowHandlePacketUpdate(), PacketReinit(), PacketSwap(), SigMatchSignaturesGetSgh(), and StreamTcpReassembleDepthReached().
GREHdr* Packet_::greh |
Definition at line 573 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 565 of file decode.h.
Referenced by DecodeICMPV4(), FlowInit(), and PacketReinit().
ICMPV4Vars Packet_::icmpv4vars |
Definition at line 550 of file decode.h.
Referenced by DecodeICMPV4().
ICMPV6Hdr* Packet_::icmpv6h |
Definition at line 567 of file decode.h.
Referenced by DecodeICMPV6(), and PacketReinit().
ICMPV6Vars Packet_::icmpv6vars |
IPV4Hdr* Packet_::ip4h |
Definition at line 535 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), PacketReinit(), and UTHFreePacket().
IPV6ExtHdrs Packet_::ip6eh |
Definition at line 544 of file decode.h.
Referenced by DecodeIPV6FragHeader().
IPV6Hdr* Packet_::ip6h |
Definition at line 537 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), PacketReinit(), and UTHBuildPacketIPV6Real().
IPFWPacketVars Packet_::ipfw_v |
union { ... } Packet_::l4vars |
struct LiveDevice_* Packet_::livedev |
Definition at line 590 of file decode.h.
Referenced by FlowInit(), PacketDefragPktSetup(), PacketInit(), PacketReinit(), and PacketTunnelPktSetup().
uint8_t Packet_::nb_decoded_layers |
Definition at line 616 of file decode.h.
Referenced by PacketReinit(), and PacketTunnelPktSetup().
struct Packet_* Packet_::next |
Definition at line 607 of file decode.h.
Referenced by PacketReinit().
NFQPacketVars Packet_::nfq_v |
NapatechPacketVars Packet_::ntpv |
uint8_t* Packet_::payload |
Definition at line 577 of file decode.h.
Referenced by DecodeICMPV6(), DetectEngineInspectPacketPayload(), PacketReinit(), StreamTcpInlineSegmentCompare(), StreamTcpInlineSegmentReplacePacket(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), and UTHBuildPacketIPV6Real().
uint16_t Packet_::payload_len |
Definition at line 578 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 598 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 583 of file decode.h.
Referenced by PacketEnqueueNoLock(), PacketReinit(), and StreamTcp().
PktVar* Packet_::pktvar |
Definition at line 525 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 639 of file decode.h.
Referenced by PacketFreeOrRelease(), TmqhOutputPacketpool(), and TmqhOutputSimple().
PPPHdr* Packet_::ppph |
Definition at line 569 of file decode.h.
Referenced by PacketReinit().
PPPOEDiscoveryHdr* Packet_::pppoedh |
Definition at line 571 of file decode.h.
Referenced by DecodePPPOEDiscovery(), and PacketReinit().
PPPOESessionHdr* Packet_::pppoesh |
Definition at line 570 of file decode.h.
Referenced by DecodePPPOESession(), and PacketReinit().
struct Packet_* Packet_::prev |
Definition at line 608 of file decode.h.
Referenced by PacketReinit().
PktProfiling* Packet_::profile |
Definition at line 642 of file decode.h.
Referenced by SCProfileRuleStart(), and SCProfilingAddPacket().
uint8_t Packet_::proto |
Definition at line 452 of file decode.h.
Referenced by DecodeICMPV4(), DecodeICMPV6(), DetectEngineInspectFrameBufferGeneric(), DetectEngineInspectStream(), EveAddVerdict(), FlowGetIpPairProtoHash(), FlowGetPacketDirection(), FlowInit(), FrameJsonLogOneFrame(), FramesPrune(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), Prefilter(), SigMatchSignaturesGetSgh(), StreamSegmentForEach(), StreamSegmentForSession(), TcpSessionPacketSsnReuse(), UTHBuildPacketIPV6Real(), and UTHFreePacket().
uint8_t Packet_::recursion_level |
Definition at line 455 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 519 of file decode.h.
Referenced by PacketFreeOrRelease(), PacketGetFromAlloc(), PacketGetFromQueueOrAlloc(), and TmqhOutputPacketpool().
struct Packet_* Packet_::root |
Definition at line 622 of file decode.h.
Referenced by PacketCheckAction(), PacketDefragPktSetup(), PacketDrop(), PacketReinit(), PacketTunnelPktSetup(), TmqhOutputPacketpool(), and TmqhOutputSimple().
SCTPHdr* Packet_::sctph |
Definition at line 561 of file decode.h.
Referenced by PacketReinit().
Port Packet_::sp |
Definition at line 437 of file decode.h.
Referenced by AlertFastLogger(), FlowGetPacketDirection(), IPOnlyMatchPacket(), JsonAddrInfoInit(), PacketReinit(), TLSGetIPInformations(), and UTHBuildPacketIPV6Real().
Address Packet_::src |
Definition at line 434 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), FlowGetPacketDirection(), IPOnlyMatchPacket(), PacketReinit(), TagHashAddTag(), TmqhOutputFlowIPPair(), UTHBuildPacketIPV6Real(), and UTHBuildPacketOfFlows().
TCPHdr* Packet_::tcph |
Definition at line 557 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 634 of file decode.h.
Referenced by AlertJsonHeader(), Detect(), PacketDefragPktSetup(), PacketReinit(), and PacketTunnelPktSetup().
SCTime_t Packet_::ts |
Definition at line 475 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 652 of file decode.h.
Referenced by PacketDestructor(), PacketInit(), and TmqhOutputPacketpool().
uint16_t Packet_::tunnel_rtv_cnt |
Definition at line 629 of file decode.h.
Referenced by PacketReinit().
uint16_t Packet_::tunnel_tpr_cnt |
Definition at line 631 of file decode.h.
Referenced by PacketReinit().
UDPHdr* Packet_::udph |
Definition at line 559 of file decode.h.
Referenced by FlowInit(), PacketReinit(), and UTHFreePacket().
uint16_t Packet_::vlan_id[VLAN_MAX_LAYERS] |
Definition at line 457 of file decode.h.
Referenced by FlowGetIpPairProtoHash(), FlowInit(), PacketDefragPktSetup(), and PacketReinit().
uint8_t Packet_::vlan_idx |
Definition at line 458 of file decode.h.
Referenced by DecodePfring(), DecodeVLAN(), FlowInit(), PacketDefragPktSetup(), and PacketReinit().