mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-25 09:37:07 +08:00
PPP, move VJ_SUPPORT disabling if LWIP_TCP is not enabled to PPP options
Van Jacobson TCP header compression only apply if TCP is enabled, therefore we need to disable VJ compression if TCP is disabled. We already have conditions to enforce VJ disabling if IPv4 is disabled or if PPPoS is disabled, add TCP to those conditions and remove unecessary VJ_SUPPORT && LWIP_TCP conditions.
This commit is contained in:
@@ -296,8 +296,8 @@
|
||||
#ifndef VJ_SUPPORT
|
||||
#define VJ_SUPPORT 1
|
||||
#endif
|
||||
/* VJ compression is only supported for IPv4 over PPPoS. */
|
||||
#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT
|
||||
/* VJ compression is only supported for TCP over IPv4 over PPPoS. */
|
||||
#if !PPPOS_SUPPORT || !PPP_IPV4_SUPPORT || !LWIP_TCP
|
||||
#undef VJ_SUPPORT
|
||||
#define VJ_SUPPORT 0
|
||||
#endif /* !PPPOS_SUPPORT */
|
||||
|
||||
Reference in New Issue
Block a user