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.
This commit is contained in:
Sylvain Rochet 2020-10-20 03:57:36 +02:00
parent 6584002826
commit 9b7cba9643

View File

@ -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 */