**/ //Switch to the appropriate trace level #define TRACE_LEVEL DHCPV6_TRACE_LEVEL //Dependencies #include "core/tcp_ip_stack.h" #include "dhcpv6/dhcpv6_common.h" #include "debug.h" //Check TCP/IP stack configuration #if (IPV6_SUPPORT == ENABLED) //All DHCPv6 relay agents and servers (FF02::1:2) const Ipv6Addr DHCPV6_ALL_RELAY_AGENTS_AND_SERVERS_ADDR = IPV6_ADDR(0xFF02, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0002); //All DHCPv6 servers (FF05::1:3) const Ipv6Addr DHCPV6_ALL_SERVERS_ADDR = IPV6_ADDR(0xFF05, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0003); /** * @brief Parse Status Code option * * This function returns a status indication related to the DHCPv6 * message or option in which it appears * * @param[in] options Pointer to the Options field * @param[in] length Length of the Options field **/
#include <ctype.h> #include "tcp_ip_stack.h" #include "mdns_client.h" #include "mdns_responder.h" #include "mdns_common.h" #include "dns_debug.h" #include "debug.h" //Check TCP/IP stack configuration #if (MDNS_CLIENT_SUPPORT == ENABLED || MDNS_RESPONDER_SUPPORT == ENABLED) #if (IPV6_SUPPORT == ENABLED) //mDNS IPv6 multicast group (ff02::fb) const Ipv6Addr MDNS_IPV6_MULTICAST_ADDR = IPV6_ADDR(0xFF02, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00FB); #endif /** * @brief mDNS related initialization * @param[in] interface Underlying network interface * @return Error code **/ error_t mdnsInit(NetInterface *interface) { error_t error; #if (IPV4_SUPPORT == ENABLED)