mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 08:33:39 +08:00
PPP, CORE, disable VJ is PPP IPV4 is compiled out
VJ compression is only supported for PPP IPv4, compile out VJ support if PPP IPv4 is not compiled.
This commit is contained in:
@@ -1852,8 +1852,10 @@ static void ipcp_up(fsm *f) {
|
||||
}
|
||||
#endif /* Unused */
|
||||
|
||||
#if VJ_SUPPORT
|
||||
/* set tcp compression */
|
||||
sifvjcomp(pcb, ho->neg_vj, ho->cflag, ho->maxslotindex);
|
||||
#endif /* VJ_SUPPORT */
|
||||
|
||||
#if DEMAND_SUPPORT
|
||||
/*
|
||||
@@ -2012,7 +2014,9 @@ static void ipcp_down(fsm *f) {
|
||||
pcb->ipcp_is_up = 0;
|
||||
np_down(pcb, PPP_IP);
|
||||
}
|
||||
#if VJ_SUPPORT
|
||||
sifvjcomp(pcb, 0, 0, 0);
|
||||
#endif /* VJ_SUPPORT */
|
||||
|
||||
#if PPP_STATS_SUPPORT
|
||||
print_link_stats(); /* _after_ running the notifiers and ip_down_hook(),
|
||||
|
||||
@@ -957,6 +957,7 @@ int cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if VJ_SUPPORT
|
||||
/********************************************************************
|
||||
*
|
||||
* sifvjcomp - config tcp header compression
|
||||
@@ -967,6 +968,7 @@ int sifvjcomp(ppp_pcb *pcb, int vjcomp, int cidcomp, int maxcid) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* VJ_SUPPORT */
|
||||
|
||||
/*
|
||||
* sifup - Config the interface up and enable IP packets to pass.
|
||||
|
||||
Reference in New Issue
Block a user