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:
Sylvain Rochet
2015-02-22 02:34:45 +01:00
parent 00e8988b52
commit a1c5415f8f
5 changed files with 14 additions and 6 deletions

View File

@@ -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(),

View File

@@ -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.