mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
2008-03-04 Kieran Mansley (contributions by others)
* Numerous small compiler error/warning fixes from contributions to mailing list after 1.3.0 release candidate made.
This commit is contained in:
parent
faca23b984
commit
42344ce20c
@ -596,6 +596,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2008-03-04 Kieran Mansley (contributions by others)
|
||||||
|
* Numerous small compiler error/warning fixes from contributions to
|
||||||
|
mailing list after 1.3.0 release candidate made.
|
||||||
|
|
||||||
2008-01-25 Cui hengbin (integrated by Frédéric Bernon)
|
2008-01-25 Cui hengbin (integrated by Frédéric Bernon)
|
||||||
* dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures.
|
* dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures.
|
||||||
|
|
||||||
|
@ -100,7 +100,9 @@ static err_t dhcp_discover(struct netif *netif);
|
|||||||
static err_t dhcp_select(struct netif *netif);
|
static err_t dhcp_select(struct netif *netif);
|
||||||
static void dhcp_check(struct netif *netif);
|
static void dhcp_check(struct netif *netif);
|
||||||
static void dhcp_bind(struct netif *netif);
|
static void dhcp_bind(struct netif *netif);
|
||||||
|
#if DHCP_DOES_ARP_CHECK
|
||||||
static err_t dhcp_decline(struct netif *netif);
|
static err_t dhcp_decline(struct netif *netif);
|
||||||
|
#endif
|
||||||
static err_t dhcp_rebind(struct netif *netif);
|
static err_t dhcp_rebind(struct netif *netif);
|
||||||
static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state);
|
static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state);
|
||||||
|
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
|
|
||||||
#include "lwip/inet_chksum.h"
|
#include "lwip/inet_chksum.h"
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
#define ARPH_PROTOLEN_SET(hdr, len) (hdr)->_hwlen_protolen = htons((len) | (ARPH_HWLEN(hdr) << 8))
|
#define ARPH_PROTOLEN_SET(hdr, len) (hdr)->_hwlen_protolen = htons((len) | (ARPH_HWLEN(hdr) << 8))
|
||||||
|
|
||||||
enum etharp_state {
|
enum etharp_state {
|
||||||
ETHARP_STATE_EMPTY,
|
ETHARP_STATE_EMPTY = 0,
|
||||||
ETHARP_STATE_PENDING,
|
ETHARP_STATE_PENDING,
|
||||||
ETHARP_STATE_STABLE
|
ETHARP_STATE_STABLE
|
||||||
};
|
};
|
||||||
@ -129,9 +129,6 @@ static err_t update_arp_entry(struct netif *netif, struct ip_addr *ipaddr, struc
|
|||||||
|
|
||||||
|
|
||||||
/* Some checks, instead of etharp_init(): */
|
/* Some checks, instead of etharp_init(): */
|
||||||
#if ETHARP_STATE_EMPTY != 0
|
|
||||||
#error ETHARP_STATE_EMPTY must be 0 to ensure correct initialization value!
|
|
||||||
#endif
|
|
||||||
#if (LWIP_ARP && (ARP_TABLE_SIZE > 0x7f))
|
#if (LWIP_ARP && (ARP_TABLE_SIZE > 0x7f))
|
||||||
#error "If you want to use ARP, ARP_TABLE_SIZE must fit in an s8_t, so, you have to reduce it in your lwipopts.h"
|
#error "If you want to use ARP, ARP_TABLE_SIZE must fit in an s8_t, so, you have to reduce it in your lwipopts.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "lwip/opt.h"
|
||||||
|
|
||||||
|
#if PPP_SUPPORT
|
||||||
|
|
||||||
#include "ppp.h"
|
#include "ppp.h"
|
||||||
#include "randm.h"
|
#include "randm.h"
|
||||||
#include "magic.h"
|
#include "magic.h"
|
||||||
@ -74,3 +78,5 @@ u32_t magic()
|
|||||||
{
|
{
|
||||||
return avRandom();
|
return avRandom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* PPP_SUPPORT */
|
||||||
|
@ -83,6 +83,8 @@
|
|||||||
|
|
||||||
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
|
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
|
#include "lwip/ip.h" /* for ip_input() */
|
||||||
|
|
||||||
#include "ppp.h"
|
#include "ppp.h"
|
||||||
#include "pppdebug.h"
|
#include "pppdebug.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user