mdns: add more mdns result attributes

* Original commit: espressif/esp-idf@76ec76c12c
This commit is contained in:
Jiacheng Guo
2021-04-21 15:34:22 +08:00
committed by suren-gabrielyan-espressif
parent 05dcd8f0ee
commit d37ab6dd25
3 changed files with 75 additions and 33 deletions

View File

@ -75,10 +75,13 @@ typedef struct mdns_result_s {
struct mdns_result_s * next; /*!< next result, or NULL for the last result in the list */
mdns_if_t tcpip_if; /*!< interface index */
uint32_t ttl; /*!< time to live */
mdns_ip_protocol_t ip_protocol; /*!< ip_protocol type of the interface (v4/v6) */
// PTR
char * instance_name; /*!< instance name */
char * service_type; /*!< service type */
char * proto; /*!< srevice protocol */
// SRV
char * hostname; /*!< hostname */
uint16_t port; /*!< service port */