/[lwip]/lwip/src/include/lwip/dhcp.h
ViewVC logotype

Diff of /lwip/src/include/lwip/dhcp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by likewise, Thu May 1 09:03:20 2003 UTC revision 1.14 by likewise, Mon Jun 9 21:14:47 2003 UTC
# Line 36  struct dhcp Line 36  struct dhcp
36    struct dhcp_msg *msg_out; /* outgoing msg */    struct dhcp_msg *msg_out; /* outgoing msg */
37    u16_t options_out_len; /* outgoing msg options length */    u16_t options_out_len; /* outgoing msg options length */
38    u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */    u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */
39    u16_t t1_timeout;     /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */    u16_t t1_timeout;  /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */
40    u16_t t2_timeout;     /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */    u16_t t2_timeout;  /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */
41    struct ip_addr server_ip_addr; /* dhcp server address that offered this lease */    struct ip_addr server_ip_addr; /* dhcp server address that offered this lease */
42    struct ip_addr offered_ip_addr;    struct ip_addr offered_ip_addr;
43    struct ip_addr offered_sn_mask;    struct ip_addr offered_sn_mask;
# Line 45  struct dhcp Line 45  struct dhcp
45    struct ip_addr offered_bc_addr;    struct ip_addr offered_bc_addr;
46    u32_t offered_t0_lease; /* lease period (in seconds) */    u32_t offered_t0_lease; /* lease period (in seconds) */
47    u32_t offered_t1_renew; /* recommended renew time (usually 50% of lease period) */    u32_t offered_t1_renew; /* recommended renew time (usually 50% of lease period) */
48    u32_t offered_t2_rebind; /* recommended rebind time (usually 66% of lease period)     */    u32_t offered_t2_rebind; /* recommended rebind time (usually 66% of lease period)  */
49  /** Patch #1308  /** Patch #1308
50   *      TODO: See dhcp.c "TODO"s   *  TODO: See dhcp.c "TODO"s
51   */   */
52  #if 0  #if 0
53    struct ip_addr offered_si_addr;    struct ip_addr offered_si_addr;
# Line 134  void dhcp_fine_tmr(void); Line 134  void dhcp_fine_tmr(void);
134  #define DHCP_COOKIE_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN)  #define DHCP_COOKIE_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN)
135  #define DHCP_OPTIONS_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN + 4)  #define DHCP_OPTIONS_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN + 4)
136    
137  #define DHCP_CLIENT_PORT 68      #define DHCP_CLIENT_PORT 68  
138  #define DHCP_SERVER_PORT 67  #define DHCP_SERVER_PORT 67
139    
140  /** DHCP client states */  /** DHCP client states */
# Line 206  void dhcp_fine_tmr(void); Line 206  void dhcp_fine_tmr(void);
206  /** possible combinations of overloading the file and sname fields with options */  /** possible combinations of overloading the file and sname fields with options */
207  #define DHCP_OVERLOAD_NONE 0  #define DHCP_OVERLOAD_NONE 0
208  #define DHCP_OVERLOAD_FILE 1  #define DHCP_OVERLOAD_FILE 1
209  #define DHCP_OVERLOAD_SNAME     2  #define DHCP_OVERLOAD_SNAME  2
210  #define DHCP_OVERLOAD_SNAME_FILE 3  #define DHCP_OVERLOAD_SNAME_FILE 3
211    
212  #endif /*__LWIP_DHCP_H__*/  #endif /*__LWIP_DHCP_H__*/

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26