|
|
|
@ -421,6 +421,9 @@ typedef struct Packet_
|
|
|
|
|
uint8_t *ext_pkt;
|
|
|
|
|
uint32_t pktlen;
|
|
|
|
|
|
|
|
|
|
/* Incoming interface */
|
|
|
|
|
struct LiveDevice_ *livedev;
|
|
|
|
|
|
|
|
|
|
PacketAlerts alerts;
|
|
|
|
|
|
|
|
|
|
/** packet number in the pcap file, matches wireshark */
|
|
|
|
@ -574,6 +577,7 @@ typedef struct DecodeThreadVars_
|
|
|
|
|
SCMutexInit(&(p)->tunnel_mutex, NULL); \
|
|
|
|
|
PACKET_RESET_CHECKSUMS((p)); \
|
|
|
|
|
(p)->pkt = ((uint8_t *)(p)) + sizeof(Packet); \
|
|
|
|
|
(p)->livedev = NULL; \
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
#define PACKET_INITIALIZE(p) { \
|
|
|
|
@ -583,6 +587,7 @@ typedef struct DecodeThreadVars_
|
|
|
|
|
SCMutexInit(&(p)->cuda_mutex, NULL); \
|
|
|
|
|
SCCondInit(&(p)->cuda_cond, NULL); \
|
|
|
|
|
(p)->pkt = ((uint8_t *)(p)) + sizeof(Packet); \
|
|
|
|
|
(p)->livedev = NULL; \
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@ -649,6 +654,7 @@ typedef struct DecodeThreadVars_
|
|
|
|
|
(p)->next = NULL; \
|
|
|
|
|
(p)->prev = NULL; \
|
|
|
|
|
(p)->root = NULL; \
|
|
|
|
|
(p)->livedev = NULL; \
|
|
|
|
|
PACKET_RESET_CHECKSUMS((p)); \
|
|
|
|
|
PACKET_PROFILING_RESET((p)); \
|
|
|
|
|
} while (0)
|
|
|
|
@ -887,7 +893,7 @@ void AddressDebugPrint(Address *);
|
|
|
|
|
#define PKT_TUNNEL 0x1000
|
|
|
|
|
#define PKT_TUNNEL_VERDICTED 0x2000
|
|
|
|
|
|
|
|
|
|
#define PKT_IGNORE_CHECKSUM 0x4000 /**< Packet checksum is not computed (TX packet for example) */
|
|
|
|
|
#define PKT_IGNORE_CHECKSUM 0x4000 /**< Packet checksum is not computed (TX packet for example) */
|
|
|
|
|
|
|
|
|
|
/** \brief return 1 if the packet is a pseudo packet */
|
|
|
|
|
#define PKT_IS_PSEUDOPKT(p) ((p)->flags & PKT_PSEUDO_STREAM_END)
|
|
|
|
|