mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
dhcp.h and ip.h declare struct netif and don't include netif.h to avoid warnings.
This commit is contained in:
parent
8e9aa84070
commit
d372121d6e
@ -37,10 +37,11 @@
|
|||||||
#include "lwip/def.h"
|
#include "lwip/def.h"
|
||||||
#include "lwip/pbuf.h"
|
#include "lwip/pbuf.h"
|
||||||
#include "lwip/ip_addr.h"
|
#include "lwip/ip_addr.h"
|
||||||
#include "lwip/netif.h"
|
|
||||||
|
|
||||||
#include "lwip/err.h"
|
#include "lwip/err.h"
|
||||||
|
|
||||||
|
struct netif;
|
||||||
|
|
||||||
void ip_init(void);
|
void ip_init(void);
|
||||||
u8_t ip_lookup(void *header, struct netif *inp);
|
u8_t ip_lookup(void *header, struct netif *inp);
|
||||||
struct netif *ip_route(struct ip_addr *dest);
|
struct netif *ip_route(struct ip_addr *dest);
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#ifndef __LWIP_DHCP_H__
|
#ifndef __LWIP_DHCP_H__
|
||||||
#define __LWIP_DHCP_H__
|
#define __LWIP_DHCP_H__
|
||||||
|
|
||||||
#include "udp.h"
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
|
#include "lwip/udp.h"
|
||||||
|
|
||||||
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
|
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
|
||||||
#define DHCP_COARSE_TIMER_SECS 60
|
#define DHCP_COARSE_TIMER_SECS 60
|
||||||
@ -86,6 +86,9 @@ PACK_STRUCT_END
|
|||||||
# include "arch/epstruct.h"
|
# include "arch/epstruct.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Declare here to avoid including netif.h creating a circular dependency */
|
||||||
|
struct netif;
|
||||||
|
|
||||||
/** initialize DHCP client */
|
/** initialize DHCP client */
|
||||||
void dhcp_init(void);
|
void dhcp_init(void);
|
||||||
/** start DHCP configuration */
|
/** start DHCP configuration */
|
||||||
@ -166,7 +169,7 @@ void dhcp_fine_tmr(void);
|
|||||||
|
|
||||||
/** BootP options */
|
/** BootP options */
|
||||||
#define DHCP_OPTION_PAD 0
|
#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_ROUTER 3
|
||||||
#define DHCP_OPTION_HOSTNAME 12
|
#define DHCP_OPTION_HOSTNAME 12
|
||||||
#define DHCP_OPTION_IP_TTL 23
|
#define DHCP_OPTION_IP_TTL 23
|
||||||
|
Loading…
Reference in New Issue
Block a user