util/ip: add IPv4 and IPv6 length

pull/13432/head
Eric Leblond 6 months ago committed by Victor Julien
parent d5ae9156b9
commit 61e485446a

@ -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 *);

Loading…
Cancel
Save