summaryrefslogtreecommitdiff
path: root/src/ipaddrcheck_functions.h
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-01-03 15:12:13 -0500
committerDaniil Baturin <daniil@vyos.io>2024-01-03 15:12:13 -0500
commit346aedbcd2257512208195bb165cc857e2907922 (patch)
tree104b13bc55d97974d353fecd324084c23dd6d66e /src/ipaddrcheck_functions.h
parent1a92fc130e7915dd711d63ff448dae490b586ef4 (diff)
downloadipaddrcheck-346aedbcd2257512208195bb165cc857e2907922.tar.gz
ipaddrcheck-346aedbcd2257512208195bb165cc857e2907922.zip
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
Diffstat (limited to 'src/ipaddrcheck_functions.h')
-rw-r--r--src/ipaddrcheck_functions.h3
1 files changed, 2 insertions, 1 deletions
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 */