mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
PPP: restore PPPoE devices without Ethernet ARP support, i.e. PPPoE only devices
Ethernet support is required for PPPoE but Ethernet support is only set
by default in opt.h if ARP is enabled, which is wrong because the right
condition is ARP and/or PPPoE, unfortunately PPPOE_SUPPORT can't be used
in opt.h because it is not defined if ppp_opts.h is not included before
opt.h in user code.
Fixup the LWIP_ETHERNET configuration value in ppp_opts.h in order to
force Ethernet support if PPPoE is enabled.
Fixes: 3ad2ad2329
("Remove reference to PPPOE_SUPPORT in opt.h - leads
to compile errors because it has no default definition (only in
ppp_opts.h)"
This commit is contained in:
parent
9cc3fb2e63
commit
d43c092f17
@ -43,6 +43,11 @@
|
|||||||
#ifndef PPPOE_SUPPORT
|
#ifndef PPPOE_SUPPORT
|
||||||
#define PPPOE_SUPPORT 0
|
#define PPPOE_SUPPORT 0
|
||||||
#endif
|
#endif
|
||||||
|
#if PPPOE_SUPPORT
|
||||||
|
/* PPPoE requires Ethernet support */
|
||||||
|
#undef LWIP_ETHERNET
|
||||||
|
#define LWIP_ETHERNET 1
|
||||||
|
#endif /* PPPOE_SUPPORT */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PPPOL2TP_SUPPORT==1: Enable PPP Over L2TP
|
* PPPOL2TP_SUPPORT==1: Enable PPP Over L2TP
|
||||||
|
Loading…
Reference in New Issue
Block a user