mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 04:54:38 +08: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
|
||||
#define PPPOE_SUPPORT 0
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user