mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Minor fix: warning, type... for patch #5952 : Integration of AutoIP module
This commit is contained in:
parent
c9ebb895a1
commit
6a40426421
@ -81,8 +81,9 @@
|
|||||||
#include "lwip/sys.h"
|
#include "lwip/sys.h"
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
#include "lwip/dhcp.h"
|
#include "lwip/dhcp.h"
|
||||||
|
#include "lwip/autoip.h"
|
||||||
|
|
||||||
#if LWIP_DHCP /* don't build if not configured for use in lwipopt.h */
|
#if LWIP_DHCP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
/** global transaction identifier, must be
|
/** global transaction identifier, must be
|
||||||
* unique for each DHCP request. We simply increment, starting
|
* unique for each DHCP request. We simply increment, starting
|
||||||
|
@ -50,25 +50,13 @@
|
|||||||
* I recommend a value of 100. The value must divide 1000 with a remainder almost 0.
|
* I recommend a value of 100. The value must divide 1000 with a remainder almost 0.
|
||||||
* Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 ....
|
* Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 ....
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* Without DHCP:
|
* Without DHCP:
|
||||||
* call autoip_init() and autoip_start() after netif_add().
|
* call autoip_init() and autoip_start() after netif_add().
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* With DHCP:
|
* With DHCP:
|
||||||
* Configure your DHCP Client
|
* Configure your DHCP Client
|
||||||
* define LWIP_DHCP_AUTOIP_COOP 1 in lwipopts.h
|
* define LWIP_DHCP_AUTOIP_COOP 1 in lwipopts.h
|
||||||
*
|
*
|
||||||
*******************************************************************************
|
|
||||||
*
|
|
||||||
* TODO:
|
|
||||||
*
|
|
||||||
* Solve compiler warnings:
|
|
||||||
*
|
|
||||||
* warning: 'struct etharp_hdr' declared inside parameter list lwip/include/ipv4/lwip autoip.h line 92
|
|
||||||
* warning: its scope is only this definition or declaration, which is probably not what you want lwip/include/ipv4/lwip autoip.h line 92
|
|
||||||
* warning: passing argument 2 of 'apipa_arp_reply' from incompatible pointer type lwip/netif etharp.c line 543
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -80,7 +68,7 @@
|
|||||||
#include "lwip/autoip.h"
|
#include "lwip/autoip.h"
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
|
|
||||||
#if LWIP_AUTOIP /* don't build if not configured for use in lwipopt.h */
|
#if LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
/* static functions */
|
/* static functions */
|
||||||
static void autoip_handle_arp_conflict(struct netif *netif);
|
static void autoip_handle_arp_conflict(struct netif *netif);
|
||||||
@ -96,7 +84,7 @@ static err_t autoip_bind(struct netif *netif);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize this module
|
* Initialize this module
|
||||||
* seed random with MAC-Address for creating pseudo-ramdom linc-local address
|
* seed random with MAC-Address for creating pseudo-ramdom link-local address
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
autoip_init(void)
|
autoip_init(void)
|
||||||
|
@ -41,10 +41,10 @@
|
|||||||
#include "lwip/inet.h"
|
#include "lwip/inet.h"
|
||||||
#include "lwip/pbuf.h"
|
#include "lwip/pbuf.h"
|
||||||
#if LWIP_DHCP
|
#if LWIP_DHCP
|
||||||
# include "lwip/dhcp.h"
|
struct dhcp;
|
||||||
#endif
|
#endif
|
||||||
#if LWIP_AUTOIP
|
#if LWIP_AUTOIP
|
||||||
# include "lwip/autoip.h"
|
struct autoip;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user