@@ -218,7 +218,7 @@ bool clsLEAMDNSHost::_parseQuery(netif* pNetIf,
218
218
(true )
219
219
#endif
220
220
&&
221
- #ifdef MDNS_IPV6_SUPPORT
221
+ #ifdef MDNS2_IPV6_SUPPORT
222
222
(m_pUDPContext->getRemoteAddress ().isV6 ()) &&
223
223
(ip6_addr_islinklocal (ip_2_ip6 ((const ip_addr_t *)m_pUDPContext->getRemoteAddress ())))
224
224
#else
@@ -304,7 +304,7 @@ bool clsLEAMDNSHost::_parseQuery(netif* pNetIf,
304
304
sendParameter.m_u32HostReplyMask &= ~static_cast<uint32_t>(enuContentFlag::PTR_IPv4);
305
305
}
306
306
#endif
307
- #ifdef MDNS_IPV6_SUPPORT
307
+ #ifdef MDNS2_IPV6_SUPPORT
308
308
if (u32HostMatchMask & static_cast<uint32_t>(enuContentFlag::PTR_IPv6))
309
309
{
310
310
// IPv6 PTR was asked for, but is already known -> skipping
@@ -330,7 +330,7 @@ bool clsLEAMDNSHost::_parseQuery(netif* pNetIf,
330
330
else if (u32HostMatchMask & static_cast<uint32_t>(enuContentFlag::AAAA))
331
331
{
332
332
// IPv6 address was asked for
333
- #ifdef MDNS_IPV6_SUPPORT
333
+ #ifdef MDNS2_IPV6_SUPPORT
334
334
if ((enuAnswerType::AAAA == pKnownRRAnswer->answerType()) &&
335
335
(((stcRRAnswerAAAA*)pKnownRRAnswer)->m_IPAddress == _getResponderIPAddress(pNetIf, enuIPProtocolType::V6)))
336
336
{
@@ -381,7 +381,7 @@ bool clsLEAMDNSHost::_parseQuery(netif* pNetIf,
381
381
}
382
382
}
383
383
#endif
384
- #ifdef MDNS_IPV6_SUPPORT
384
+ #ifdef MDNS2_IPV6_SUPPORT
385
385
if (enuAnswerType::AAAA == pKnownRRAnswer->answerType ())
386
386
{
387
387
IPAddress localIPAddress (_getResponderIPAddress (pNetIf, enuIPProtocolType::V6));
@@ -775,7 +775,7 @@ bool clsLEAMDNSHost::_processAnswers(netif* pNetIf, const clsLEAMDNSHost::clsRRA
775
775
bResult = _processAAnswer ((clsRRAnswerA*)pRRAnswer);
776
776
}
777
777
#endif
778
- #ifdef MDNS_IPV6_SUPPORT
778
+ #ifdef MDNS2_IPV6_SUPPORT
779
779
// AAAA -> IPv6Address
780
780
else if (enuAnswerType::AAAA == pRRAnswer->answerType ())
781
781
{
@@ -802,7 +802,7 @@ bool clsLEAMDNSHost::_processAnswers(netif* pNetIf, const clsLEAMDNSHost::clsRRA
802
802
bPossibleEcho = true ;
803
803
}
804
804
#endif
805
- #ifdef MDNS_IPV6_SUPPORT
805
+ #ifdef MDNS2_IPV6_SUPPORT
806
806
if ((enuAnswerType::AAAA == pRRAnswer->answerType ()) &&
807
807
(((clsRRAnswerAAAA*)pRRAnswer)->m_IPAddress == _getResponderIPAddress (pNetIf, enuIPProtocolType::V6)))
808
808
{
@@ -1159,7 +1159,7 @@ bool clsLEAMDNSHost::_processAAnswer(const clsLEAMDNSHost::clsRRAnswerA* p_pAAns
1159
1159
}
1160
1160
#endif
1161
1161
1162
- #ifdef MDNS_IPV6_SUPPORT
1162
+ #ifdef MDNS2_IPV6_SUPPORT
1163
1163
/*
1164
1164
clsLEAmDNS2_Host::_processAAAAAnswer (level 3)
1165
1165
*/
@@ -1298,7 +1298,7 @@ bool clsLEAMDNSHost::_updateProbeStatus()
1298
1298
true
1299
1299
#endif
1300
1300
) || (
1301
- #ifdef MDNS_IPV6_SUPPORT
1301
+ #ifdef MDNS2_IPV6_SUPPORT
1302
1302
_getResponderIPAddress(pNetIf, enuIPProtocolType::V6).isSet() // OR has IPv6 address
1303
1303
#else
1304
1304
true
@@ -1511,7 +1511,7 @@ bool clsLEAMDNSHost::_sendHostProbe()
1511
1511
#ifdef MDNS_IPV4_SUPPORT
1512
1512
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::A); // Add A answer
1513
1513
#endif
1514
- #ifdef MDNS_IPV6_SUPPORT
1514
+ #ifdef MDNS2_IPV6_SUPPORT
1515
1515
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::AAAA); // Add AAAA answer
1516
1516
#endif
1517
1517
}
@@ -1705,7 +1705,7 @@ bool clsLEAMDNSHost::_announce(bool p_bAnnounce,
1705
1705
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::A); // A answer
1706
1706
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::PTR_IPv4); // PTR_IPv4 answer
1707
1707
#endif
1708
- #ifdef MDNS_IPV6_SUPPORT
1708
+ #ifdef MDNS2_IPV6_SUPPORT
1709
1709
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::AAAA); // AAAA answer
1710
1710
sendParameter.m_u32HostReplyMask |= static_cast <uint32_t >(enuContentFlag::PTR_IPv6); // PTR_IPv6 answer
1711
1711
#endif
@@ -1892,7 +1892,7 @@ bool clsLEAMDNSHost::_checkQueryCache()
1892
1892
pQAnswer->releaseIPv4Addresses ();
1893
1893
queryAnswerContentFlags |= static_cast <clsQuery::clsAnswer::typeQueryAnswerType>(clsQuery::clsAnswer::enuQueryAnswerType::IPv4Address);
1894
1894
#endif
1895
- #ifdef MDNS_IPV6_SUPPORT
1895
+ #ifdef MDNS2_IPV6_SUPPORT
1896
1896
pQAnswer->releaseIPv6Addresses ();
1897
1897
queryAnswerContentFlags |= static_cast <clsQuery::clsAnswer::typeQueryAnswerType>(clsQuery::clsAnswer::enuQueryAnswerType::IPv6Address);
1898
1898
#endif
@@ -1991,7 +1991,7 @@ bool clsLEAMDNSHost::_checkQueryCache()
1991
1991
pQAnswer->removeIPv4Address (pIPv4Address);
1992
1992
}
1993
1993
#endif
1994
- #ifdef MDNS_IPV6_SUPPORT
1994
+ #ifdef MDNS2_IPV6_SUPPORT
1995
1995
// IPv6Address (from AAAA)
1996
1996
clsQuery::clsAnswer::clsIPAddressWithTTL::list expiredIPv6Addresses;
1997
1997
bool bAAAAUpdateQuerySent = false ;
@@ -2095,7 +2095,7 @@ uint32_t clsLEAMDNSHost::_replyMaskForHost(netif* pNetIf,
2095
2095
u32ReplyMask |= static_cast <uint32_t >(enuContentFlag::PTR_IPv4);
2096
2096
}
2097
2097
#endif
2098
- #ifdef MDNS_IPV6_SUPPORT
2098
+ #ifdef MDNS2_IPV6_SUPPORT
2099
2099
clsRRDomain reverseIPv6Domain;
2100
2100
if ((_getResponderIPAddress (pNetIf, enuIPProtocolType::V6).isSet ()) &&
2101
2101
(_buildDomainForReverseIPv6 (_getResponderIPAddress (pNetIf, enuIPProtocolType::V6), reverseIPv6Domain)) &&
@@ -2121,7 +2121,7 @@ uint32_t clsLEAMDNSHost::_replyMaskForHost(netif* pNetIf,
2121
2121
u32ReplyMask |= static_cast <uint32_t >(enuContentFlag::A);
2122
2122
}
2123
2123
#endif
2124
- #ifdef MDNS_IPV6_SUPPORT
2124
+ #ifdef MDNS2_IPV6_SUPPORT
2125
2125
if ((DNS_RRTYPE_AAAA == p_RRHeader.m_Attributes .m_u16Type ) ||
2126
2126
(DNS_RRTYPE_ANY == p_RRHeader.m_Attributes .m_u16Type ))
2127
2127
{
0 commit comments