/[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.19 by likewise, Thu Jul 22 21:56:09 2004 UTC revision 1.20 by likewise, Thu Nov 4 19:19:29 2004 UTC
# Line 86  struct dhcp_msg Line 86  struct dhcp_msg
86    PACK_STRUCT_FIELD(u8_t file[DHCP_FILE_LEN]);    PACK_STRUCT_FIELD(u8_t file[DHCP_FILE_LEN]);
87    PACK_STRUCT_FIELD(u32_t cookie);    PACK_STRUCT_FIELD(u32_t cookie);
88  #define DHCP_MIN_OPTIONS_LEN 68U  #define DHCP_MIN_OPTIONS_LEN 68U
89    /** make sure user does not configure this too small */
90    #if ((defined(DHCP_OPTIONS_LEN)) && (DHCP_OPTIONS_LEN < DHCP_MIN_OPTIONS_LEN))
91    #  undef DHCP_OPTIONS_LEN
92    #endif
93  /** allow this to be configured in lwipopts.h, but not too small */  /** allow this to be configured in lwipopts.h, but not too small */
94  #if ((!defined(DHCP_OPTIONS_LEN)) || (DHCP_OPTIONS_LEN < DHCP_MIN_OPTIONS_LEN))  #if (!defined(DHCP_OPTIONS_LEN))
95  /** set this to be sufficient for your options in outgoing DHCP msgs */  /** set this to be sufficient for your options in outgoing DHCP msgs */
96  #  define DHCP_OPTIONS_LEN DHCP_MIN_OPTIONS_LEN  #  define DHCP_OPTIONS_LEN DHCP_MIN_OPTIONS_LEN
97  #endif  #endif
# Line 100  PACK_STRUCT_END Line 104  PACK_STRUCT_END
104    
105  /** start DHCP configuration */  /** start DHCP configuration */
106  err_t dhcp_start(struct netif *netif);  err_t dhcp_start(struct netif *netif);
107    /** enforce early lease renewal (not needed normally)*/
108    err_t dhcp_renew(struct netif *netif);
109    /** release the DHCP lease, usually called before dhcp_stop()*/
110    err_t dhcp_release(struct netif *netif);
111  /** stop DHCP configuration */  /** stop DHCP configuration */
112  void dhcp_stop(struct netif *netif);  void dhcp_stop(struct netif *netif);
113  /** enforce lease renewal */  /** inform server of our manual IP address */
 err_t dhcp_renew(struct netif *netif);  
 /** inform server of our IP address */  
114  void dhcp_inform(struct netif *netif);  void dhcp_inform(struct netif *netif);
115    
116  /** if enabled, check whether the offered IP address is not in use, using ARP */  /** if enabled, check whether the offered IP address is not in use, using ARP */

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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