mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
PPP, IPV6, correct fix for IPV6CP_COMP disabling
This commit is contained in:
parent
2eb0386c2a
commit
210496f0ca
@ -1396,9 +1396,9 @@ static int ipv6cp_printpkt(u_char *p, int plen,
|
|||||||
void (*printer)(void *, const char *, ...), void *arg) {
|
void (*printer)(void *, const char *, ...), void *arg) {
|
||||||
int code, id, len, olen;
|
int code, id, len, olen;
|
||||||
u_char *pstart, *optend;
|
u_char *pstart, *optend;
|
||||||
#if VJ_SUPPORT
|
#ifdef IPV6CP_COMP
|
||||||
u_short cishort;
|
u_short cishort;
|
||||||
#endif /* VJ_SUPPORT */
|
#endif /* IPV6CP_COMP */
|
||||||
eui64_t ifaceid;
|
eui64_t ifaceid;
|
||||||
|
|
||||||
if (plen < HEADERLEN)
|
if (plen < HEADERLEN)
|
||||||
@ -1433,7 +1433,7 @@ static int ipv6cp_printpkt(u_char *p, int plen,
|
|||||||
len -= olen;
|
len -= olen;
|
||||||
optend = p + olen;
|
optend = p + olen;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
#if VJ_SUPPORT
|
#ifdef IPV6CP_COMP
|
||||||
case CI_COMPRESSTYPE:
|
case CI_COMPRESSTYPE:
|
||||||
if (olen >= CILEN_COMPRESS) {
|
if (olen >= CILEN_COMPRESS) {
|
||||||
p += 2;
|
p += 2;
|
||||||
@ -1442,7 +1442,7 @@ static int ipv6cp_printpkt(u_char *p, int plen,
|
|||||||
printer(arg, "0x%x", cishort);
|
printer(arg, "0x%x", cishort);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* VJ_SUPPORT */
|
#endif /* IPV6CP_COMP */
|
||||||
case CI_IFACEID:
|
case CI_IFACEID:
|
||||||
if (olen == CILEN_IFACEID) {
|
if (olen == CILEN_IFACEID) {
|
||||||
p += 2;
|
p += 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user