From 61e485446a6d3880f9e3ab69ca2a6b7c80d82903 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 2 Mar 2025 17:30:41 +0100 Subject: [PATCH] util/ip: add IPv4 and IPv6 length --- src/util-ip.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util-ip.h b/src/util-ip.h index c5ba35b562..e0cb6a9403 100644 --- a/src/util-ip.h +++ b/src/util-ip.h @@ -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 *); -- 2.47.2