`i` only counts the number of matches with the current family, while `n_addresses` counts the number of matches with the family INET or INET6. If the address contains both INET and INET6, `assert(i == n_addresses)` will fail.
`i` only counts the number of matches with the current family, while `n_addresses` counts the number of matches with the family INET or INET6. If the address contains both INET and INET6, `assert(i == n_addresses)` will fail.