]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packet: minor macro cleanups
authorVictor Julien <vjulien@oisf.net>
Sat, 25 Nov 2023 07:33:53 +0000 (08:33 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 1 Dec 2023 13:55:37 +0000 (14:55 +0100)
src/decode.h

index 7478134ceb5e80abb01fc5f3fa46de9959b57052..6392f3361e58565fb90e33f169ec9e9645336c45 100644 (file)
@@ -216,8 +216,8 @@ typedef struct Address_ {
 #define GET_TCP_SRC_PORT(p)  ((p)->sp)
 #define GET_TCP_DST_PORT(p)  ((p)->dp)
 
-#define GET_PKT_LEN(p) ((p)->pktlen)
-#define GET_PKT_DATA(p)            ((((p)->ext_pkt) == NULL) ? GET_PKT_DIRECT_DATA(p) : (p)->ext_pkt)
+#define GET_PKT_LEN(p)             (p)->pktlen
+#define GET_PKT_DATA(p)            (((p)->ext_pkt == NULL) ? GET_PKT_DIRECT_DATA(p) : (p)->ext_pkt)
 #define GET_PKT_DIRECT_DATA(p)     (p)->pkt_data
 #define GET_PKT_DIRECT_MAX_SIZE(p) (default_packet_size)