From 779b5be2a5d096eff2db3313c4ee502a3b593db8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 2 Dec 2025 20:19:54 +0000 Subject: T7973: do not disallow all-zero host part IPv6 host addresses since they are valid unicast addresses, unlike in IPv4 --- 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 b717d74..bd131cf 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-2024 VyOS maintainers and contributors + * Copyright (C) 2018-2025 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 @@ -50,6 +50,7 @@ #define IPV6_MULTICAST "ff00::/8" #define IPV6_LINKLOCAL "fe80::/64" #define IPV6_LOOPBACK "::1/128" +#define IPV6_UNSPECIFIED "::/0" #define NO_LOOPBACK 0 #define LOOPBACK_ALLOWED 1 -- cgit v1.2.3