diff options
| author | qiuyiuestc <[email protected]> | 2009-11-29 14:35:37 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2009-11-29 14:35:37 +0000 |
| commit | 2cac413f95dc1a0034ccd31b0fc3910f397f6475 (patch) | |
| tree | 22bdb8a2fca66087a356d60d104941b4a60269cc /net | |
| parent | bfc50209aea2d4c10d025f11779400d32ed9ff8c (diff) | |
File system and net for LM3S platform are available.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@181 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'net')
| -rw-r--r-- | net/lwip/src/lwipopts.h | 6 | ||||
| -rw-r--r-- | net/lwip/src/netif/ethernetif.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/net/lwip/src/lwipopts.h b/net/lwip/src/lwipopts.h index b24b4b0463..c17573bb78 100644 --- a/net/lwip/src/lwipopts.h +++ b/net/lwip/src/lwipopts.h @@ -63,8 +63,8 @@ #define AUTOIP_DEBUG LWIP_DBG_OFF #define DHCP_DEBUG LWIP_DBG_OFF #define IP_DEBUG LWIP_DBG_OFF -#define IP_REASS_DEBUG LWIP_DBG_ON -#define ICMP_DEBUG LWIP_DBG_ON +#define IP_REASS_DEBUG LWIP_DBG_OFF +#define ICMP_DEBUG LWIP_DBG_OFF #define IGMP_DEBUG LWIP_DBG_OFF #define UDP_DEBUG LWIP_DBG_OFF #define TCP_DEBUG LWIP_DBG_OFF @@ -142,6 +142,8 @@ link level header. */ #define PBUF_LINK_HLEN 16 +#define ETH_PAD_SIZE 2 // default is 0 + /** SYS_LIGHTWEIGHT_PROT * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection * for certain critical regions during buffer allocation, deallocation and memory diff --git a/net/lwip/src/netif/ethernetif.c b/net/lwip/src/netif/ethernetif.c index 4dfc06d4b2..9eeee00c6c 100644 --- a/net/lwip/src/netif/ethernetif.c +++ b/net/lwip/src/netif/ethernetif.c @@ -63,7 +63,7 @@ err_t eth_input(struct pbuf *p, struct netif *inp) {
case ETHTYPE_IP:
etharp_ip_input(inp, p);
- pbuf_header(p, -14);
+ pbuf_header(p, -((rt_int16_t)sizeof(struct eth_hdr)));
tcpip_input(p, inp);
break;
|
