util/ip: add IPv4 and IPv6 length

This commit is contained in:
Eric Leblond
2025-06-11 20:49:18 +02:00
committed by Victor Julien
parent d5ae9156b9
commit 61e485446a
+3
View 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 *);