From 5e64286bab07fdd28fc644e2165633949f313662 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Tue, 20 Feb 2018 17:02:18 +0100 Subject: [PATCH] CLEANUP: standard: Fix typo in IPv6 mask example IPv6 addresses with two double colons are invalid. This typo was introduced in commit 471851713af20d84b67b8966471ea758dc8c12b9. --- include/common/standard.h | 2 +- src/standard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/standard.h b/include/common/standard.h index 461044787..6542759d9 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -378,7 +378,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int str2mask(const char *str, struct in_addr *mask); /* converts to a struct in6_addr containing a network mask. It can be - * passed in quadruplet form (ffff::ffff::) or in CIDR form (64). It returns 1 + * passed in quadruplet form (ffff:ffff::) or in CIDR form (64). It returns 1 * if the conversion succeeds otherwise zero. */ int str2mask6(const char *str, struct in6_addr *mask); diff --git a/src/standard.c b/src/standard.c index b6bb1bc01..d87e09cc1 100644 --- a/src/standard.c +++ b/src/standard.c @@ -1037,7 +1037,7 @@ int str2mask(const char *str, struct in_addr *mask) } /* converts to a struct in6_addr containing a network mask. It can be - * passed in quadruplet form (ffff::ffff::) or in CIDR form (64). It returns 1 + * passed in quadruplet form (ffff:ffff::) or in CIDR form (64). It returns 1 * if the conversion succeeds otherwise zero. */ int str2mask6(const char *str, struct in6_addr *mask)