]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util/ip: add IPv4 and IPv6 length
authorEric Leblond <el@stamus-networks.com>
Sun, 2 Mar 2025 16:30:41 +0000 (17:30 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 11 Jun 2025 18:49:18 +0000 (20:49 +0200)
src/util-ip.h

index c5ba35b562d2d888f921836359cd034b93ce378d..e0cb6a9403634d00ca743f6be69f14898c783f84 100644 (file)
@@ -25,6 +25,9 @@
 #ifndef SURICATA_UTIL_IP_H
 #define SURICATA_UTIL_IP_H
 
+#define SC_IPV4_LEN 4
+#define SC_IPV6_LEN 16
+
 bool IPv4AddressStringIsValid(const char *str);
 bool IPv6AddressStringIsValid(const char *str);
 struct in_addr *ValidateIPV4Address(const char *);