From 210496f0caa84bbf97cdd689ccc9b29f07aa8a54 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 23 Mar 2015 23:48:00 +0100 Subject: [PATCH] PPP, IPV6, correct fix for IPV6CP_COMP disabling --- src/netif/ppp/ipv6cp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/netif/ppp/ipv6cp.c b/src/netif/ppp/ipv6cp.c index 0dc4549e..f1011fb7 100644 --- a/src/netif/ppp/ipv6cp.c +++ b/src/netif/ppp/ipv6cp.c @@ -1396,9 +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 +#ifdef IPV6CP_COMP u_short cishort; -#endif /* VJ_SUPPORT */ +#endif /* IPV6CP_COMP */ eui64_t ifaceid; if (plen < HEADERLEN) @@ -1433,7 +1433,7 @@ static int ipv6cp_printpkt(u_char *p, int plen, len -= olen; optend = p + olen; switch (code) { -#if VJ_SUPPORT +#ifdef IPV6CP_COMP case CI_COMPRESSTYPE: if (olen >= CILEN_COMPRESS) { p += 2; @@ -1442,7 +1442,7 @@ static int ipv6cp_printpkt(u_char *p, int plen, printer(arg, "0x%x", cishort); } break; -#endif /* VJ_SUPPORT */ +#endif /* IPV6CP_COMP */ case CI_IFACEID: if (olen == CILEN_IFACEID) { p += 2;