The IPv4 and IPv6 any / unspecified address string literals, "0.0.0.0"
and "::" respectively, and comparisons against them appear often
enough throughout the code where they warrant referencing through
file-scoped constants and introducing and leveraging introspection
functions to encapsulate the comparison patterns.
This introduces and uses such constants and 'is_ipv[46]_addr_any_str'
introspection functions to encapsulate these comparison patterns.
Grant Erickson (3):
connection: Introduce and leverage 'ipv[46]_addr_any_str' constants.
connection: Introduce and leverage 'is_ipv[46]_addr_any_str'
functions.
connection: Document 'is_ipv[46]_addr_any_str'.
src/connection.c | 84 +++++++++++++++++++++++++++++++++++++-----------
1 file changed, 65 insertions(+), 19 deletions(-)