1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

lwip2: fix static address management (#4677)

+ interactive example (for debugging)
This commit is contained in:
david gauchard
2018-05-02 01:20:55 +02:00
committed by GitHub
parent 758b0bd124
commit 76a14b1f63
9 changed files with 131 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,6 +2,16 @@
all install clean: builder/lwip2-src/README
make -C builder -f Makefile.arduino $@
latestmaster: downloadmaster install
latestupstream: downloadupstream install
downloadupstream: downloadmaster
cd builder/lwip2-src; git checkout master
downloadmaster: download
cd builder; git checkout master
download: builder/lwip2-src/README
builder/lwip2-src/README:

View File

@ -1,5 +1,9 @@
```make install```: download, compile, install lwip2
```make latestmaster```: download latest lwip2, compile, install
```make latestupstream```: download latest lwip2 and latest upstream lwIP, compile, install
```make download```: download lwIP-2 builder
```make clean```: clean builder only
@ -10,4 +14,4 @@ MSS values are in builder/Makefile.arduino
MSS values in boards.txt are only informative
current lwip2 submodule repository: https://github.com/d-a-v/esp82xx-nonos-linklayer/tree/arduino-2.4.0
current lwip2 submodule repository: https://github.com/d-a-v/esp82xx-nonos-linklayer/tree/arduino-2.4.1

View File

@ -2,6 +2,7 @@
#ifndef __GLUE_DEBUG_H
#define __GLUE_DEBUG_H
// this file is commonly included by both sides of the glue
/////////////////////////////////////////////////////////////////////////////
// user-definable
@ -27,6 +28,15 @@
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON)
#endif
/////////////////////////////////////////////////////////////////////////////
// packet capture callback from esp side
#include <stdlib.h>
#ifdef __cplusplus
extern "C"
#endif
void (*phy_capture) (int netif_idx, const char* data, size_t len, int out, int success);
/////////////////////////////////////////////////////////////////////////////
#if UDEBUG && UDEBUGSTORE

View File

@ -1,5 +1,5 @@
// generated by makefiles/make-lwip2-hash
#ifndef LWIP_HASH_H
#define LWIP_HASH_H
#define LWIP_HASH_STR "STABLE-2_0_3_RELEASE/glue:arduino-2.4.1"
#define LWIP_HASH_STR "STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-7-g2b827f8"
#endif // LWIP_HASH_H

View File

@ -2688,9 +2688,11 @@
* Return ERR_OK if packet is accepted, any error code otherwise.
* Payload points to ethernet header!
*/
#ifdef __DOXYGEN__
#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif)
#endif
//#ifdef __DOXYGEN__
//#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif)
//#endif
#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif) lwip_unhandled_packet((pbuf), (netif))
/**
* @}
*/
@ -3003,4 +3005,12 @@
#include "lwip-git-hash.h"
#include <sys/time.h> // settimeofday() + struct timeval
// allow to handle special packets (user redefinable)
struct pbuf;
struct netif;
#ifndef LWIP_ERR_T
#define LWIP_ERR_T s8
#endif
LWIP_ERR_T lwip_unhandled_packet (struct pbuf* pbuf, struct netif* netif) __attribute__((weak));
#endif // MYLWIPOPTS_H