diff options
author | tb <> | 2022-01-04 19:49:14 +0000 |
---|---|---|
committer | tb <> | 2022-01-04 19:49:14 +0000 |
commit | 2609e55a77d1488ed932d4761f5b4025e6fadf9e (patch) | |
tree | f41760428438f1975b56a220f807c6dd43e7bc59 /src/lib/libc | |
parent | 1a7cc6fb282b8ea2dda029734dc811a2b8be05aa (diff) | |
download | openbsd-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/lib/libc')
0 files changed, 0 insertions, 0 deletions