From: Victor Julien Date: Mon, 2 May 2022 19:42:27 +0000 (+0200) Subject: decode: add pass action wrapper X-Git-Tag: suricata-7.0.0-beta1~484 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4567995678f55d1437f5abd4e0e1b796f5da575c;p=thirdparty%2Fsuricata.git decode: add pass action wrapper --- diff --git a/src/decode.h b/src/decode.h index f4d6b5b52f..fb4f58647a 100644 --- a/src/decode.h +++ b/src/decode.h @@ -936,6 +936,11 @@ static inline void PacketDrop(Packet *p, enum PacketDropReason r) PACKET_SET_ACTION(p, ACTION_DROP); } +static inline void PacketPass(Packet *p) +{ + PACKET_SET_ACTION(p, ACTION_PASS); +} + static inline uint8_t PacketTestAction(const Packet *p, const uint8_t a) { if (likely(p->root == NULL)) {