Skip to content

[th/ipaddr-norm] nmci.ip: rework ipaddr_norm() to have a parse and normalize function

Thomas Haller requested to merge th/ipaddr-norm into main

The previous "_norm()" function parse and normalizes the input. But they also returns a tuple with the detected address family and prefix length. Rename those functions to "_parse()".

Add also two "*_norm()" functions, that just return the normalized (and validated) string.

Merge request reports