mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
init: raise an error if PPP CCP_SUPPORT==1 but MPPE_SUPPORT==0
Building PPP CCP support without adding any compressor support serve no real use case. Forbid doing so instead of bloating the code with more ifdef. Signed-off-by: Sylvain Rochet <gradator@gradator.net>
This commit is contained in:
parent
cd140b1105
commit
cfe5ce9d49
@ -220,6 +220,9 @@ PACK_STRUCT_END
|
|||||||
#if PPP_SUPPORT && PPP_IPV6_SUPPORT && !LWIP_IPV6
|
#if PPP_SUPPORT && PPP_IPV6_SUPPORT && !LWIP_IPV6
|
||||||
#error "PPP_IPV6_SUPPORT needs LWIP_IPV6 turned on"
|
#error "PPP_IPV6_SUPPORT needs LWIP_IPV6 turned on"
|
||||||
#endif
|
#endif
|
||||||
|
#if PPP_SUPPORT && CCP_SUPPORT && !MPPE_SUPPORT
|
||||||
|
#error "CCP_SUPPORT needs MPPE_SUPPORT turned on"
|
||||||
|
#endif
|
||||||
#if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT)
|
#if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT)
|
||||||
#error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT"
|
#error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user