diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2025-05-26 18:19:02 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-06-01 14:12:47 +0200 |
commit | c0f9d1950e0968688558c2abbaa41cffd03f19de (patch) | |
tree | 082d6c952dd36064b2fa1fa6501e0553123eea24 /cftest | |
parent | 6498d29aa15557428aa62f37c478a602e03bd740 (diff) |
IP2BIN, IP2HBIN, IP2STR: refactor `interp` call-backs
IP2STR and IP2BIN do all family checks inside the for-loop that converts the
address fields, whereas IP2HBIN does the checks once before the loop. Refactor
the former to do as the latter.
Also, move all the remaining contents of the for-loops, apart from the
`pp_is_valid` checks, into `ip2*` functions.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'cftest')
0 files changed, 0 insertions, 0 deletions