Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
1b8e015f
Commit
1b8e015f
authored
Jul 28, 2015
by
Robert Foss
Browse files
Removed some whitespace.
parent
5822d4c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lwip/app/dhcpserver.c
View file @
1b8e015f
...
...
@@ -112,58 +112,58 @@ static uint8_t* ICACHE_FLASH_ATTR add_offer_options(uint8_t *optptr)
*
optptr
++
=
DHCP_OPTION_SUBNET_MASK
;
*
optptr
++
=
4
;
//length
*
optptr
++
=
255
;
*
optptr
++
=
240
;
*
optptr
++
=
240
;
*
optptr
++
=
0
;
*
optptr
++
=
0
;
#else
*
optptr
++
=
DHCP_OPTION_SUBNET_MASK
;
*
optptr
++
=
4
;
*
optptr
++
=
4
;
*
optptr
++
=
255
;
*
optptr
++
=
255
;
*
optptr
++
=
255
;
*
optptr
++
=
255
;
*
optptr
++
=
0
;
#endif
*
optptr
++
=
DHCP_OPTION_LEASE_TIME
;
*
optptr
++
=
4
;
*
optptr
++
=
4
;
*
optptr
++
=
0x00
;
*
optptr
++
=
0x01
;
*
optptr
++
=
0x51
;
*
optptr
++
=
0x80
;
*
optptr
++
=
0x80
;
*
optptr
++
=
DHCP_OPTION_SERVER_ID
;
*
optptr
++
=
4
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
*
optptr
++
=
ip4_addr4
(
&
ipadd
);
*
optptr
++
=
DHCP_OPTION_ROUTER
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
*
optptr
++
=
ip4_addr4
(
&
ipadd
);
*
optptr
++
=
DHCP_OPTION_ROUTER
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
*
optptr
++
=
ip4_addr4
(
&
ipadd
);
#ifdef USE_DNS
*
optptr
++
=
DHCP_OPTION_DNS_SERVER
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
*
optptr
++
=
ip4_addr4
(
&
ipadd
);
*
optptr
++
=
DHCP_OPTION_DNS_SERVER
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
*
optptr
++
=
ip4_addr4
(
&
ipadd
);
#endif
#ifdef CLASS_B_NET
*
optptr
++
=
DHCP_OPTION_BROADCAST_ADDRESS
;
*
optptr
++
=
4
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
255
;
*
optptr
++
=
255
;
*
optptr
++
=
255
;
#else
*
optptr
++
=
DHCP_OPTION_BROADCAST_ADDRESS
;
*
optptr
++
=
4
;
*
optptr
++
=
4
;
*
optptr
++
=
ip4_addr1
(
&
ipadd
);
*
optptr
++
=
ip4_addr2
(
&
ipadd
);
*
optptr
++
=
ip4_addr3
(
&
ipadd
);
...
...
@@ -171,28 +171,28 @@ static uint8_t* ICACHE_FLASH_ATTR add_offer_options(uint8_t *optptr)
#endif
*
optptr
++
=
DHCP_OPTION_INTERFACE_MTU
;
*
optptr
++
=
2
;
*
optptr
++
=
2
;
#ifdef CLASS_B_NET
*
optptr
++
=
0x05
;
*
optptr
++
=
0x05
;
*
optptr
++
=
0xdc
;
#else
*
optptr
++
=
0x02
;
*
optptr
++
=
0x02
;
*
optptr
++
=
0x40
;
#endif
*
optptr
++
=
DHCP_OPTION_PERFORM_ROUTER_DISCOVERY
;
*
optptr
++
=
1
;
*
optptr
++
=
0x00
;
*
optptr
++
=
1
;
*
optptr
++
=
0x00
;
*
optptr
++
=
43
;
*
optptr
++
=
6
;
*
optptr
++
=
43
;
*
optptr
++
=
6
;
*
optptr
++
=
0x01
;
*
optptr
++
=
4
;
*
optptr
++
=
0x01
;
*
optptr
++
=
4
;
*
optptr
++
=
0x00
;
*
optptr
++
=
0x00
;
*
optptr
++
=
0x00
;
*
optptr
++
=
0x02
;
*
optptr
++
=
0x02
;
return
optptr
;
}
...
...
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