mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
mdns : Add subtypes table to the service structe
This commit is contained in:
parent
e8741da9d2
commit
d7b05eed68
@ -58,6 +58,8 @@
|
|||||||
/** The maximum number of services per netif */
|
/** The maximum number of services per netif */
|
||||||
#ifndef MDNS_MAX_SERVICES
|
#ifndef MDNS_MAX_SERVICES
|
||||||
#define MDNS_MAX_SERVICES 1
|
#define MDNS_MAX_SERVICES 1
|
||||||
|
/** The maximum number of subtypes per service */
|
||||||
|
#define MDNS_MAX_SERVICES_SUBTYPES 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** The minimum delay between probes in ms. RFC 6762 require 250ms.
|
/** The minimum delay between probes in ms. RFC 6762 require 250ms.
|
||||||
|
@ -98,14 +98,18 @@ struct mdns_service {
|
|||||||
char name[MDNS_LABEL_MAXLEN + 1];
|
char name[MDNS_LABEL_MAXLEN + 1];
|
||||||
/** Type of service, like '_http' */
|
/** Type of service, like '_http' */
|
||||||
char service[MDNS_LABEL_MAXLEN + 1];
|
char service[MDNS_LABEL_MAXLEN + 1];
|
||||||
/** Callback function and userdata
|
/** SubType of service, like '_printer' */
|
||||||
* to update txtdata buffer */
|
char subTypes[MDNS_MAX_SERVICES_SUBTYPES][MDNS_LABEL_MAXLEN + 1];
|
||||||
|
/** Callback function and userdata/*
|
||||||
|
/* to update txtdata buffer */
|
||||||
service_get_txt_fn_t txt_fn;
|
service_get_txt_fn_t txt_fn;
|
||||||
void *txt_userdata;
|
void *txt_userdata;
|
||||||
/** Protocol, TCP or UDP */
|
/** Protocol, TCP or UDP */
|
||||||
u16_t proto;
|
u16_t proto;
|
||||||
/** Port of the service */
|
/** Port of the service */
|
||||||
u16_t port;
|
u16_t port;
|
||||||
|
/** Number of the subtypes of a service */
|
||||||
|
u16_t subtypes_nbr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** mDNS output packet */
|
/** mDNS output packet */
|
||||||
|
Loading…
Reference in New Issue
Block a user