From 9b7cba9643c1d8d32b6549eed67f1a6cbde1b791 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Tue, 20 Oct 2020 03:57:36 +0200 Subject: [PATCH] PPP: don't define PPP_IP if PPP_IPV4_SUPPORT is disabled Doing so helps a lot at finding places where we have leftovers of IPv4 support when the support is disabled. --- src/include/netif/ppp/ppp_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index b149c132..de8d4696 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -90,7 +90,9 @@ extern "C" { /* * Protocol field values. */ +#if PPP_IPV4_SUPPORT #define PPP_IP 0x21 /* Internet Protocol */ +#endif /* PPP_IPV4_SUPPORT */ #if 0 /* UNUSED */ #define PPP_AT 0x29 /* AppleTalk Protocol */ #define PPP_IPX 0x2b /* IPX protocol */