PPP: disable VJ support by default

VJ support is known to be broken when built with some compiler
optimizations enabled, disabling it by default until someone needs it
and fixes it.

It was mostly used with dial-up modems, it is useless with PPPoE and
PPPoL2TP and is probably useless as well with cellular modems, so
disabling it by default makes sense anyway.
This commit is contained in:
Sylvain Rochet 2020-10-16 22:20:11 +02:00
parent 729b3da96d
commit bedb4e4745
2 changed files with 4 additions and 2 deletions

View File

@ -303,7 +303,7 @@ a lot of data that needs to be copied, this should be set high. */
#define MSCHAP_SUPPORT 0 /* Set > 0 for MSCHAP */
#define CBCP_SUPPORT 0 /* Set > 0 for CBCP (NOT FUNCTIONAL!) */
#define CCP_SUPPORT 0 /* Set > 0 for CCP */
#define VJ_SUPPORT 1 /* Set > 0 for VJ header compression. */
#define VJ_SUPPORT 0 /* Set > 0 for VJ header compression. */
#define MD5_SUPPORT 1 /* Set > 0 for MD5 (see also CHAP) */
#endif /* PPP_SUPPORT */

View File

@ -311,9 +311,11 @@
/**
* VJ_SUPPORT==1: Support VJ header compression.
*
* BEWARE: It is known to be broken when built with some compiler optimizations enabled.
*/
#ifndef VJ_SUPPORT
#define VJ_SUPPORT 1
#define VJ_SUPPORT 0
#endif
/* VJ compression is only supported for TCP over IPv4 over PPPoS. */
#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP