MCPcopy Create free account
hub / github.com/apple/foundationdb / netmaskWeight

Method netmaskWeight

fdbrpc/IPAllowList.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int AuthAllowedSubnet::netmaskWeight() const {
74 if (addressMask.isV4()) {
75 boost::asio::ip::address_v4 addr(netmask().toV4());
76 return netmaskWeightImpl(addr.to_bytes());
77 } else {
78 return netmaskWeightImpl(netmask().toV6());
79 }
80}
81
82AuthAllowedSubnet AuthAllowedSubnet::fromString(std::string_view addressString) {
83 auto pos = addressString.find('/');

Callers 1

IPAllowList.cppFile · 0.80

Calls 4

netmaskWeightImplFunction · 0.85
isV4Method · 0.80
toV4Method · 0.80
to_bytesMethod · 0.80

Tested by

no test coverage detected