]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode: documentation group for packet alert flags
authorJason Ish <jason.ish@oisf.net>
Tue, 22 Apr 2025 18:55:51 +0000 (12:55 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 2 May 2025 18:10:09 +0000 (20:10 +0200)
As #define's like this can't be logically grouped into an enum, try
Doxygen documentation groups, which create a group just of these flag
values and documents them together on a page.

src/decode.h

index b49359936f98f5f77bc23ad65058a5f859e61f2c..b584a12b14fcf5cd120bc2e0adcd317986a675f5 100644 (file)
@@ -249,7 +249,14 @@ typedef struct PacketAlert_ {
     int64_t frame_id;
 } PacketAlert;
 
-/* flag to indicate the rule action (drop/pass) needs to be applied to the flow */
+/**
+ * \defgroup PacketAlertFlags
+ *
+ * Available flags for PacketAlert.flags.
+ *
+ * @{
+ */
+/** flag to indicate the rule action (drop/pass) needs to be applied to the flow */
 #define PACKET_ALERT_FLAG_APPLY_ACTION_TO_FLOW BIT_U8(0)
 /** alert was generated based on state */
 #define PACKET_ALERT_FLAG_STATE_MATCH BIT_U8(1)
@@ -265,6 +272,7 @@ typedef struct PacketAlert_ {
 #define PACKET_ALERT_FLAG_TX_GUESSED BIT_U8(6)
 /** accept should be applied to packet */
 #define PACKET_ALERT_FLAG_APPLY_ACTION_TO_PACKET BIT_U8(7)
+/** @} */
 
 extern uint16_t packet_alert_max;
 #define PACKET_ALERT_MAX 15