feat(lwip): Added PPP config option to control VJ header compression

This commit is contained in:
David Cermak 2024-01-08 09:42:29 +01:00 committed by David Čermák
parent 18ff62017a
commit 63e8e01646
2 changed files with 15 additions and 0 deletions

View File

@ -948,6 +948,16 @@ menu "LWIP"
help
Enable to use PPP server
config LWIP_PPP_VJ_HEADER_COMPRESSION
bool "Enable VJ IP Header compression"
depends on LWIP_PPP_SUPPORT
default y
help
Enable support for VJ header compression.
Please disable this if you're using NAPT on PPP interface,
since the compressed IP header might not be correctly interpreted
in NAT causing the compressed packet to be dropped.
config LWIP_ENABLE_LCP_ECHO
bool "Enable LCP ECHO"
depends on LWIP_PPP_SUPPORT

View File

@ -1087,6 +1087,11 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
*/
#define PPP_SERVER CONFIG_LWIP_PPP_SERVER_SUPPORT
/**
* VJ_SUPPORT==1: Support VJ header compression.
*/
#define VJ_SUPPORT CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION
/**
* PPP_MAXIDLEFLAG: Max Xmit idle time (in ms) before resend flag char.
* TODO: If PPP_MAXIDLEFLAG > 0 and next package is send during PPP_MAXIDLEFLAG time,