Convert DecodeSetNoPayloadInspectionFlag and DecodeSetNoPacketInspectionFlag to macro's.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent 63cb1818ed
commit be5b547803

@ -23,26 +23,6 @@ void DecodeTunnel(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt
}
}
/** \brief Set the No payload inspection Flag for the packet.
*
* \param p Packet to set the flag in
*/
inline void DecodeSetNoPayloadInspectionFlag(Packet *p) {
SCEnter();
p->flags |= PKT_NOPAYLOAD_INSPECTION;
SCReturn;
}
/** \brief Set the No packet inspection Flag for the packet.
*
* \param p Packet to set the flag in
*/
inline void DecodeSetNoPacketInspectionFlag(Packet *p) {
SCEnter();
p->flags |= PKT_NOPACKET_INSPECTION;
SCReturn;
}
void DecodeRegisterPerfCounters(DecodeThreadVars *dtv, ThreadVars *tv)
{
/* register counters */

@ -484,8 +484,22 @@ void DecodeVLAN(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t,
Packet *SetupPkt (void);
Packet *TunnelPktSetup(ThreadVars *, DecodeThreadVars *, Packet *, uint8_t *, uint16_t, uint8_t);
inline void DecodeSetNoPayloadInspectionFlag(Packet *);
inline void DecodeSetNoPacketInspectionFlag(Packet *);
/** \brief Set the No payload inspection Flag for the packet.
*
* \param p Packet to set the flag in
*/
#define DecodeSetNoPayloadInspectionFlag(p) { \
(p)->flags |= PKT_NOPAYLOAD_INSPECTION; \
}
/** \brief Set the No packet inspection Flag for the packet.
*
* \param p Packet to set the flag in
*/
#define DecodeSetNoPacketInspectionFlag(p) { \
(p)->flags |= PKT_NOPACKET_INSPECTION; \
}
#define DECODER_SET_EVENT(p, e) ((p)->events[(e/8)] |= (1<<(e%8)))
#define DECODER_ISSET_EVENT(p, e) ((p)->events[(e/8)] & (1<<(e%8)))

Loading…
Cancel
Save