Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
f11cc4db
Unverified
Commit
f11cc4db
authored
Aug 20, 2023
by
Jimmy Hedman
Committed by
GitHub
Aug 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make MDNS compile with IPv6 enabled (#1651)
parent
8c2901da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libraries/LEAmDNS/src/LEAmDNS_Control.cpp
libraries/LEAmDNS/src/LEAmDNS_Control.cpp
+4
-0
No files found.
libraries/LEAmDNS/src/LEAmDNS_Control.cpp
View file @
f11cc4db
...
@@ -268,7 +268,11 @@ bool MDNSResponder::_parseQuery(const MDNSResponder::stcMDNS_MsgHeader& p_MsgHea
...
@@ -268,7 +268,11 @@ bool MDNSResponder::_parseQuery(const MDNSResponder::stcMDNS_MsgHeader& p_MsgHea
remote
=
m_pUDPContext
->
getRemoteAddress
();
remote
=
m_pUDPContext
->
getRemoteAddress
();
local
=
WiFi
.
localIP
();
local
=
WiFi
.
localIP
();
netmask
=
WiFi
.
subnetMask
();
netmask
=
WiFi
.
subnetMask
();
#if LWIP_IPV6
if
(
ip4_addr_netcmp
(
&
remote
.
u_addr
.
ip4
,
&
local
.
u_addr
.
ip4
,
&
netmask
.
u_addr
.
ip4
))
#else
if
(
ip4_addr_netcmp
(
&
remote
,
&
local
,
&
netmask
))
if
(
ip4_addr_netcmp
(
&
remote
,
&
local
,
&
netmask
))
#endif
// ip_info IPInfo_Local;
// ip_info IPInfo_Local;
// ip_info IPInfo_Remote;
// ip_info IPInfo_Remote;
// if (((IPInfo_Remote.ip.addr = m_pUDPContext->getRemoteAddress()))
// if (((IPInfo_Remote.ip.addr = m_pUDPContext->getRemoteAddress()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment