return DNSSD_ERROR_OUT_OF_MEMORY;
}
- DNSSD_LOGD("dnssd_handle[%p] optype[%d]", dnssd_handle, dnssd_handle->op_type);
+ DNSSD_LOGD("dnssd_handle[%p] optype[%d] if_index[%u] host[%s] name[%s] fullname[%s]",
+ dnssd_handle, dnssd_handle->op_type, if_index, host_name, service_name, fullname);
if (dnssd_handle->op_type == DNSSD_TYPE_BROWSE) {
__extract_domain_from_name(fullname, &domain);
local_handle = __create_found_service(dnssd_handle, DNSSD_TYPE_FOUND,
local_handle = dnssd_handle;
dnssd_found_data_s *found = GET_FOUND_DATA_P(local_handle);
found->port = (int)ntohs(port);
+ if (txt_record != NULL) {
+ found->txt_record = g_strndup(txt_record, txt_len);
+ found->txt_len = txt_len;
+ }
} else {
DNSSD_LOGE("Invalid op_type[%d].", dnssd_handle->op_type);
return DNSSD_ERROR_OPERATION_FAILED;