From 346aedbcd2257512208195bb165cc857e2907922 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 3 Jan 2024 15:12:13 -0500 Subject: Complete implementation of IPv4 and IPv6 address range checks * Add IPv6 range checking and tests for it * Expose both options in the help message * Explain in comments how the range checking logic works --- src/ipaddrcheck_functions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ipaddrcheck_functions.h') diff --git a/src/ipaddrcheck_functions.h b/src/ipaddrcheck_functions.h index 05a19c3..c0d8603 100644 --- a/src/ipaddrcheck_functions.h +++ b/src/ipaddrcheck_functions.h @@ -2,7 +2,7 @@ * ipaddrcheck_functions.h: macros and prototypes for ipaddrcheck * * Copyright (C) 2013 Daniil Baturin - * Copyright (C) 2018 VyOS maintainers and contributors + * Copyright (C) 2018-2024 VyOS maintainers and contributors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -77,5 +77,6 @@ int is_valid_intf_address(CIDR *address, char* address_str, int allow_loopback); int is_any_host(CIDR *address); int is_any_net(CIDR *address); int is_ipv4_range(char* range_str, int verbose); +int is_ipv6_range(char* range_str, int verbose); #endif /* IPADDRCHECK_FUNCTIONS_H */ -- cgit v1.2.3