|
3 | 3 | #define __CUSTOM_EXTRA_DEFINES__
|
4 | 4 |
|
5 | 5 | #endif
|
6 |
| - |
7 | 6 | #ifndef MYLWIPOPTS_H
|
8 | 7 | #define MYLWIPOPTS_H
|
9 | 8 |
|
10 |
| -// opt.h version lwip-2.1.0rc1 for esp8266 |
| 9 | +/* opt.h version lwip-2.1.3 for esp8266 */ |
11 | 10 |
|
12 | 11 | /**
|
13 | 12 | * @file
|
|
996 | 995 | #if !LWIP_IPV4
|
997 | 996 | /* disable AUTOIP when IPv4 is disabled */
|
998 | 997 | #undef LWIP_AUTOIP
|
999 |
| -#define LWIP_AUTOIP 0 |
| 998 | +#define LWIP_AUTOIP 0 |
1000 | 999 | #endif /* !LWIP_IPV4 */
|
1001 | 1000 |
|
1002 | 1001 | /**
|
|
1564 | 1563 | * LWIP_PBUF_REF_T: Refcount type in pbuf.
|
1565 | 1564 | * Default width of u8_t can be increased if 255 refs are not enough for you.
|
1566 | 1565 | */
|
1567 |
| -#ifndef LWIP_PBUF_REF_T |
| 1566 | +#if !defined LWIP_PBUF_REF_T || defined __DOXYGEN__ |
1568 | 1567 | #define LWIP_PBUF_REF_T u8_t
|
1569 | 1568 | #endif
|
1570 | 1569 |
|
|
2447 | 2446 | * LWIP_IPV6_FORWARD==1: Forward IPv6 packets across netifs
|
2448 | 2447 | */
|
2449 | 2448 | #if !defined LWIP_IPV6_FORWARD || defined __DOXYGEN__
|
2450 |
| -#define LWIP_IPV6_FORWARD 0 // 0 |
| 2449 | +#define LWIP_IPV6_FORWARD 0 |
2451 | 2450 | #endif
|
2452 | 2451 |
|
2453 | 2452 | /**
|
|
2683 | 2682 | * servers to the DNS module.
|
2684 | 2683 | */
|
2685 | 2684 | #if !defined LWIP_ND6_RDNSS_MAX_DNS_SERVERS || defined __DOXYGEN__
|
2686 |
| -#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS 0 // 0 |
| 2685 | +#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS 0 |
2687 | 2686 | #endif
|
2688 | 2687 | /**
|
2689 | 2688 | * @}
|
|
2722 | 2721 | * void dhcp6_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs);
|
2723 | 2722 | */
|
2724 | 2723 | #if !defined LWIP_DHCP6_GET_NTP_SRV || defined __DOXYGEN__
|
2725 |
| -#define LWIP_DHCP6_GET_NTP_SRV 1 // with 1: dhcp6_set_ntp_servers() must be implemented |
| 2724 | +#define LWIP_DHCP6_GET_NTP_SRV 1 |
2726 | 2725 | #endif
|
2727 | 2726 |
|
2728 | 2727 | /**
|
|
3509 | 3508 | #if !defined DHCP6_DEBUG || defined __DOXYGEN__
|
3510 | 3509 | #define DHCP6_DEBUG LWIP_DBG_OFF
|
3511 | 3510 | #endif
|
3512 |
| -/** |
3513 |
| - * @} |
3514 |
| - */ |
3515 | 3511 |
|
3516 | 3512 | /**
|
3517 | 3513 | * NAPT_DEBUG: Enable debugging for NAPT.
|
|
3520 | 3516 | #define NAPT_DEBUG LWIP_DBG_OFF
|
3521 | 3517 | #endif
|
3522 | 3518 |
|
| 3519 | +/** |
| 3520 | + * @} |
| 3521 | + */ |
| 3522 | + |
3523 | 3523 | /**
|
3524 | 3524 | * LWIP_TESTMODE: Changes to make unit test possible
|
3525 | 3525 | */
|
|
3566 | 3566 | #define PPPOS_SUPPORT IP_NAPT // because we don't have proxyarp yet
|
3567 | 3567 | #define PPP_SUPPORT PPPOS_SUPPORT
|
3568 | 3568 | #define PPP_SERVER 1
|
3569 |
| -#define PPP_DEBUG ULWIPDEBUG |
3570 | 3569 | #define PRINTPKT_SUPPORT ULWIPDEBUG
|
3571 | 3570 |
|
| 3571 | +#if ULWIPDEBUG |
| 3572 | +#define PPP_DEBUG LWIP_DBG_ON |
| 3573 | +#define PING_DEBUG LWIP_DBG_ON |
| 3574 | +#endif |
| 3575 | + |
3572 | 3576 | #ifdef __cplusplus
|
3573 | 3577 | extern "C" {
|
3574 | 3578 | #endif
|
@@ -3710,4 +3714,4 @@ void tcp_kill_timewait (void);
|
3710 | 3714 | } // extern "C"
|
3711 | 3715 | #endif
|
3712 | 3716 |
|
3713 |
| -#endif // MYLWIPOPTS_H |
| 3717 | +#endif /* MYLWIPOPTS_H */ |
0 commit comments