summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authortb <>2022-01-04 19:49:14 +0000
committertb <>2022-01-04 19:49:14 +0000
commit2609e55a77d1488ed932d4761f5b4025e6fadf9e (patch)
treef41760428438f1975b56a220f807c6dd43e7bc59 /src/usr.bin
parent1a7cc6fb282b8ea2dda029734dc811a2b8be05aa (diff)
downloadopenbsd-2609e55a77d1488ed932d4761f5b4025e6fadf9e.tar.gz
openbsd-2609e55a77d1488ed932d4761f5b4025e6fadf9e.tar.bz2
openbsd-2609e55a77d1488ed932d4761f5b4025e6fadf9e.zip
Refactor IPAddressFamily accessors
Introduce a helper function that allows fetching the AFI and the optional SAFI out of an IPAddressFamily. Also add two wrappers that only fetch and validate the AFI, where validation currently only means that the length is between 2 and 3. Use these accessors throughout to simplify and streamline the code. ok inoguchi jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions