summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authortb <>2021-12-28 16:10:47 +0000
committertb <>2021-12-28 16:10:47 +0000
commit10bf2b260818e12ba8063556da5d7b74dde85775 (patch)
tree7a06f27d725169b1d0b56f1bc868a9152f89438e /src/usr.bin
parentaebd8f6e8a2e74237ea4e3ecf83287e5430484d5 (diff)
downloadopenbsd-10bf2b260818e12ba8063556da5d7b74dde85775.tar.gz
openbsd-10bf2b260818e12ba8063556da5d7b74dde85775.tar.bz2
openbsd-10bf2b260818e12ba8063556da5d7b74dde85775.zip
Convert make_IPAddressFamily to CBS/CBB
The IPAddrBlocks type, which represents the IPAddrBlocks extension, should have exactly one IPAddressFamily per AFI+SAFI combination to be delegated. make_IPAddressFamily() first builds up a search key from the afi and safi arguments and then looks for an existing IPAddressFamily with that key in the IPAddrBlocks that was passed in. It returns that if it finds it or allocates and adds a new one. This diff preserves the current behavior that the afi and *safi arguments are truncated to 2 and 1 bytes, respectively. This may change in the future. ok inoguchi jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions