mdns_responder.c
char_t reverseName[DNS_MAX_IPV6_REVERSE_NAME_LEN+1]
Reverse DNS lookup for IPv6.
Definition: mdns_responder.h:183
error_t dnsSdResponderStartProbing(DnsSdResponderContext *context)
Restart probing process.
Definition: dns_sd_responder.c:410
error_t mdnsResponderSetHostname(MdnsResponderContext *context, const char_t *hostname)
Set host name.
Definition: mdns_responder.c:203
error_t mdnsResponderSendGoodbye(MdnsResponderContext *context)
Send goodbye packet.
Definition: mdns_responder_misc.c:291
uint32_t netGenerateRandRange(uint32_t min, uint32_t max)
Generate a random value in the specified range.
Definition: net_misc.c:948
void mdnsResponderChangeHostname(MdnsResponderContext *context)
Programmatically change the host name.
Definition: mdns_responder_misc.c:88
error_t mdnsResponderInit(MdnsResponderContext *context, const MdnsResponderSettings *settings)
mDNS responder initialization
Definition: mdns_responder.c:75
error_t mdnsResponderStart(MdnsResponderContext *context)
Start mDNS responder.
Definition: mdns_responder.c:118
MdnsState mdnsResponderGetState(MdnsResponderContext *context)
Retrieve current state.
Definition: mdns_responder.c:180
void mdnsResponderTick(MdnsResponderContext *context)
mDNS responder timer handler
Definition: mdns_responder.c:370
void dnsGenerateIpv4ReverseName(Ipv4Addr ipv4Addr, char_t *buffer)
Generate domain name for reverse DNS lookup (IPv4)
Definition: dns_common.c:479
error_t mdnsResponderSendProbe(MdnsResponderContext *context)
Send probe packet.
Definition: mdns_responder_misc.c:150
#define MDNS_RESPONDER_MAX_HOSTNAME_LEN
Definition: mdns_responder.h:56
void mdnsResponderGetDefaultSettings(MdnsResponderSettings *settings)
Initialize settings with default values.
Definition: mdns_responder.c:54
void dnsSdResponderGenerateAdditionalRecords(NetInterface *interface, MdnsMessage *response, bool_t legacyUnicast)
Additional record generation.
Definition: dns_sd_responder_misc.c:727
void mdnsResponderChangeState(MdnsResponderContext *context, MdnsState newState, systime_t delay)
Update FSM state.
Definition: mdns_responder_misc.c:53
void mdnsResponderLinkChangeEvent(MdnsResponderContext *context)
Callback function for link change event.
Definition: mdns_responder.c:608
void mdnsResponderGenerateAdditionalRecords(MdnsResponderContext *context, MdnsMessage *response, bool_t legacyUnicast)
Generate additional records.
Definition: mdns_responder_misc.c:1245
Helper functions for DNS-SD responder.
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
MdnsResponderStateChangeCallback stateChangeEvent
FSM state change event.
Definition: mdns_responder.h:196
Helper functions for mDNS responder.
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
error_t mdnsResponderStop(MdnsResponderContext *context)
Stop mDNS responder.
Definition: mdns_responder.c:149
char_t reverseName[DNS_MAX_IPV4_REVERSE_NAME_LEN+1]
Reverse DNS lookup for IPv4.
Definition: mdns_responder.h:171
@ IPV4_ADDR_STATE_VALID
An address assigned to an interface whose use is unrestricted.
Definition: ipv4.h:204
void dnsGenerateIpv6ReverseName(const Ipv6Addr *ipv6Addr, char_t *buffer)
Generate domain name for reverse DNS lookup (IPv6)
Definition: dns_common.c:498
@ IPV6_ADDR_STATE_PREFERRED
An address assigned to an interface whose use is unrestricted.
Definition: ipv6.h:175
TCP/IP stack core.
@ IPV6_ADDR_STATE_DEPRECATED
An address assigned to an interface whose use is discouraged.
Definition: ipv6.h:176
Data logging functions for debugging purpose (DNS)
error_t mdnsResponderStartProbing(MdnsResponderContext *context)
Restart probing process.
Definition: mdns_responder.c:253
error_t mdnsResponderSendAnnouncement(MdnsResponderContext *context)
Send announcement packet.
Definition: mdns_responder_misc.c:225
Debugging facilities.
error_t mdnsSendMessage(NetInterface *interface, const MdnsMessage *message, const IpAddr *destIpAddr, uint_t destPort)
Send mDNS message.
Definition: mdns_common.c:458
mDNS responder (Multicast DNS)