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