MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / setInterfaceParams

Function setInterfaceParams

base/poco/Net/src/NetworkInterface.cpp:920–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918
919
920void setInterfaceParams(struct ifaddrs* iface, NetworkInterfaceImpl& impl)
921{
922 struct sockaddr_dl* sdl = (struct sockaddr_dl*) iface->ifa_addr;
923 impl.setName(iface->ifa_name);
924 impl.setDisplayName(iface->ifa_name);
925 impl.setAdapterName(iface->ifa_name);
926 impl.setPhyParams();
927
928 impl.setMACAddress(LLADDR(sdl), sdl->sdl_alen);
929 impl.setType(fromNative(sdl->sdl_type));
930}
931
932
933} // namespace

Callers 1

mapMethod · 0.85

Calls 14

fromNativeFunction · 0.85
setDisplayNameMethod · 0.80
setAdapterNameMethod · 0.80
setPhyParamsMethod · 0.80
setMACAddressMethod · 0.80
parseHexFunction · 0.50
setNameMethod · 0.45
setTypeMethod · 0.45
goodMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected