| 458 | } |
| 459 | |
| 460 | PIP_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 |
| 482 | U16 emulatedFamilyFromHostFamily(U16 family) { |
no test coverage detected