From: Tim Duesterhus Date: Tue, 20 Feb 2018 16:02:18 +0000 (+0100) Subject: CLEANUP: standard: Fix typo in IPv6 mask example X-Git-Tag: v1.9-dev1~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e64286bab07fdd28fc644e2165633949f313662;p=thirdparty%2Fhaproxy.git CLEANUP: standard: Fix typo in IPv6 mask example IPv6 addresses with two double colons are invalid. This typo was introduced in commit 471851713af20d84b67b8966471ea758dc8c12b9. --- diff --git a/include/common/standard.h b/include/common/standard.h index 4610447872..6542759d9f 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 b6bb1bc019..d87e09cc10 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)