|
lwIP
2.0.3
Lightweight IP stack
|
Functions | |
| err_t | mdns_domain_add_label (struct mdns_domain *domain, const char *label, u8_t len) |
| u16_t | mdns_readname (struct pbuf *p, u16_t offset, struct mdns_domain *domain) |
| int | mdns_domain_eq (struct mdns_domain *a, struct mdns_domain *b) |
| u16_t | mdns_compress_domain (struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain) |
MDNS responder private definitions
| u16_t mdns_compress_domain | ( | struct pbuf * | pbuf, |
| u16_t * | offset, | ||
| struct mdns_domain * | domain | ||
| ) |
Return bytes needed to write before jump for best result of compressing supplied domain against domain in outpacket starting at specified offset. If a match is found, offset is updated to where to jump to
| pbuf | Pointer to pbuf with the partially constructed DNS packet |
| offset | Start position of a domain written earlier. If this location is suitable for compression, the pointer is updated to where in the domain to jump to. |
| domain | The domain to write |
| err_t mdns_domain_add_label | ( | struct mdns_domain * | domain, |
| const char * | label, | ||
| u8_t | len | ||
| ) |
Add a label part to a domain
| domain | The domain to add a label to |
| label | The label to add, like <hostname>, 'local', 'com' or '' |
| len | The length of the label |
| int mdns_domain_eq | ( | struct mdns_domain * | a, |
| struct mdns_domain * | b | ||
| ) |
Return 1 if contents of domains match (case-insensitive)
| a | Domain name to compare 1 |
| b | Domain name to compare 2 |
| u16_t mdns_readname | ( | struct pbuf * | p, |
| u16_t | offset, | ||
| struct mdns_domain * | domain | ||
| ) |
Read possibly compressed domain name from packet buffer
| p | The packet |
| offset | start position of domain name in packet |
| domain | The domain name destination |