mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-25 17:46:56 +08:00
dhcp: convert 'subnet_mask_given' to 'flags'
Don't waste 7 bits (in preparation for more flags)
This commit is contained in:
@@ -62,6 +62,8 @@ extern "C" {
|
||||
|
||||
#define DHCP_BOOT_FILE_LEN 128U
|
||||
|
||||
#define DHCP_FLAG_SUBNET_MASK_GIVEN 0x01
|
||||
|
||||
/* AutoIP cooperation flags (struct dhcp.autoip_coop_state) */
|
||||
typedef enum {
|
||||
DHCP_AUTOIP_COOP_STATE_OFF = 0,
|
||||
@@ -78,8 +80,8 @@ struct dhcp
|
||||
u8_t state;
|
||||
/** retries of current request */
|
||||
u8_t tries;
|
||||
|
||||
u8_t subnet_mask_given;
|
||||
/** see DHCP_FLAG_* */
|
||||
u8_t flags;
|
||||
|
||||
u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */
|
||||
u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */
|
||||
|
||||
Reference in New Issue
Block a user