lwIP
DHCP_CHECK_IP_MATCH_SUBNET_MASK
is only used within lwIP.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
lwIP
DHCP_CHECK_IP_MATCH_SUBNET_MASK
DHCP_CHECK_IP_MATCH_SUBNET_MASK macro
Syntax
Show:
Summary
Declaration
from
dhcpserver.c:83
#define
DHCP_CHECK_IP_MATCH_SUBNET_MASK
(
mask
,
ip
)
\
u32_t
start_ip
=
0
;
\
u32_t
end_ip
=
0
;
\
do
{
\
start_ip
=
ip
&
mask
;
\
end_ip
=
start_ip
|
~
mask
;
\
if
(
ip
==
end_ip
||
ip
==
start_ip
)
{
\
DHCPS_LOG
(
"dhcps: ip address and subnet mask do not match.\n"
)
;
\
return
ERR_ARG
;
\
}
\
}
while
(
0
)
Arguments
Argument
mask
ip
Examples
References
from
examples
Code
Location
#define
DHCP_CHECK_IP_MATCH_SUBNET_MASK
(
mask
,
ip
)
\
dhcpserver.c:83
DHCP_CHECK_IP_MATCH_SUBNET_MASK
(
htonl
(
dhcps
->
dhcps_mask
.
addr
)
,
htonl
(
ip
.
addr
)
)
;
dhcpserver.c:1361
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out