26 const int addrFamily) {
29 if (addrFamily == AF_INET) {
30 exclude = IPPROTO_IPV6;
31 }
else if (addrFamily == AF_INET6) {
34 LOG(
FATAL) <<
"Address family " << addrFamily <<
" was not IPv4 or IPv6";
36 for (
const auto& opt: allOptions) {
37 if (opt.first.level != exclude) {
38 opts[opt.first] = opt.second;
std::map< OptionKey, int > OptionMap
AsyncSocket::OptionMap filterIPSocketOptions(const AsyncSocket::OptionMap &allOptions, const int addrFamily)