dhcp.h and ip.h declare struct netif and don't include netif.h to avoid warnings.

This commit is contained in:
jani 2003-02-20 17:16:30 +00:00
parent 8e9aa84070
commit d372121d6e
2 changed files with 7 additions and 3 deletions

View File

@ -37,10 +37,11 @@
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/err.h"
struct netif;
void ip_init(void);
u8_t ip_lookup(void *header, struct netif *inp);
struct netif *ip_route(struct ip_addr *dest);

View File

@ -4,8 +4,8 @@
#ifndef __LWIP_DHCP_H__
#define __LWIP_DHCP_H__
#include "udp.h"
#include "lwip/opt.h"
#include "lwip/udp.h"
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
#define DHCP_COARSE_TIMER_SECS 60
@ -86,6 +86,9 @@ PACK_STRUCT_END
# include "arch/epstruct.h"
#endif
/* Declare here to avoid including netif.h creating a circular dependency */
struct netif;
/** initialize DHCP client */
void dhcp_init(void);
/** start DHCP configuration */
@ -166,7 +169,7 @@ void dhcp_fine_tmr(void);
/** BootP options */
#define DHCP_OPTION_PAD 0
#define DHCP_OPTION_SUBNET_MASK 1 // RFC 2132 3.3
#define DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */
#define DHCP_OPTION_ROUTER 3
#define DHCP_OPTION_HOSTNAME 12
#define DHCP_OPTION_IP_TTL 23