|
|
|
@ -829,12 +829,19 @@ typedef struct DecodeThreadVars_
|
|
|
|
|
#define IS_TUNNEL_PKT_VERDICTED(p) (((p)->flags & PKT_TUNNEL_VERDICTED))
|
|
|
|
|
#define SET_TUNNEL_PKT_VERDICTED(p) ((p)->flags |= PKT_TUNNEL_VERDICTED)
|
|
|
|
|
|
|
|
|
|
enum DecodeTunnelProto {
|
|
|
|
|
DECODE_TUNNEL_ETHERNET,
|
|
|
|
|
DECODE_TUNNEL_VLAN,
|
|
|
|
|
DECODE_TUNNEL_IPV4,
|
|
|
|
|
DECODE_TUNNEL_IPV6,
|
|
|
|
|
DECODE_TUNNEL_PPP,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void DecodeRegisterPerfCounters(DecodeThreadVars *, ThreadVars *);
|
|
|
|
|
Packet *PacketTunnelPktSetup(ThreadVars *tv, DecodeThreadVars *dtv, Packet *parent,
|
|
|
|
|
uint8_t *pkt, uint16_t len, uint8_t proto, PacketQueue *pq);
|
|
|
|
|
uint8_t *pkt, uint16_t len, enum DecodeTunnelProto proto, PacketQueue *pq);
|
|
|
|
|
Packet *PacketDefragPktSetup(Packet *parent, uint8_t *pkt, uint16_t len, uint8_t proto);
|
|
|
|
|
void PacketDefragPktSetupParent(Packet *parent);
|
|
|
|
|
void DecodeRegisterPerfCounters(DecodeThreadVars *, ThreadVars *);
|
|
|
|
|
Packet *PacketGetFromQueueOrAlloc(void);
|
|
|
|
|
Packet *PacketGetFromAlloc(void);
|
|
|
|
|
void PacketDecodeFinalize(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p);
|
|
|
|
@ -855,7 +862,7 @@ int DecodeSll(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, P
|
|
|
|
|
int DecodePPP(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|
int DecodePPPOESession(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|
int DecodePPPOEDiscovery(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|
int DecodeTunnel(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *, uint8_t) __attribute__ ((warn_unused_result));
|
|
|
|
|
int DecodeTunnel(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *, enum DecodeTunnelProto) __attribute__ ((warn_unused_result));
|
|
|
|
|
int DecodeNull(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|
int DecodeRaw(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|
int DecodeIPV4(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, PacketQueue *);
|
|
|
|
|