/* Get the length of TXT item's key name.  */
static int _mdns_txt_item_name_get_len(const uint8_t *data, size_t len)
/* Get the length of TXT item's key name.  */
static int _mdns_txt_item_name_get_len(const uint8_t *data, size_t len)
{
    int i;
    if (*data == '=') {
        return -1;
    }
    for (i = 0; i < len; i++) {
        if (data[i] == '=') {
            return i;
        }
    }
    return len;
}