Skip to content

connection: Introduce and Leverage IP Any / Unspecified Address String Constants and Functions

Grant Erickson connman 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3connection: Introduce and leverage 'ipv[46]_addr_any_str' constants.src/connection.c+24 -120 replies
2/3connection: Introduce and leverage 'is_ipv[46]_addr_any_str' functions.src/connection.c+20 -180 replies
3/3connection: Document 'is_ipv[46]_addr_any_str'.src/connection.c+40 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] connection: Introduce and Leverage IP Any / Unspecified Address String Constants and Functions

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 | 92 ++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 73 insertions(+), 19 deletions(-)
Signature · 1 line
2.42.0