MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getAdapterAddress

Function getAdapterAddress

source/kernel/knativesocket.cpp:460–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460PIP_ADAPTER_ADDRESSES getAdapterAddress(const BString& name) {
461 static PIP_ADAPTER_ADDRESSES addresses;
462
463 if (!addresses) {
464 addresses = getAdapterAddresses();
465 }
466 if (!addresses) {
467 return nullptr;
468 }
469 if (name == "lo") {
470 PIP_ADAPTER_ADDRESSES address = addresses;
471 while (address) {
472 if (address->IfType == IF_TYPE_SOFTWARE_LOOPBACK) {
473 return address;
474 }
475 address = address->Next;
476 }
477 }
478 return addresses;
479}
480
481#endif
482U16 emulatedFamilyFromHostFamily(U16 family) {

Callers 1

ioctlMethod · 0.85

Calls 1

getAdapterAddressesFunction · 0.85

Tested by

no test coverage detected