/* Helper to get either ETH or STA if the other is provided Used when two interfaces are on the same subnet.  */
static tcpip_adapter_if_t _mdns_get_other_if(tcpip_adapter_if_t tcpip_if)
/* Helper to get either ETH or STA if the other is provided Used when two interfaces are on the same subnet.  */
static tcpip_adapter_if_t _mdns_get_other_if(tcpip_adapter_if_t tcpip_if)
{
    if (tcpip_if == TCPIP_ADAPTER_IF_STA) {
        return TCPIP_ADAPTER_IF_ETH;
    } else if (tcpip_if == TCPIP_ADAPTER_IF_ETH) {
        return TCPIP_ADAPTER_IF_STA;
    }
    return TCPIP_ADAPTER_IF_MAX;
}