From 1b17a8cc5e2f73c17a11b07ada38e2cb173975a7 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Sun, 27 Aug 2017 12:19:59 +0100 Subject: [PATCH] Dismiss unused IPPROTO_CARP. In ipproto_values[] IPPROTO_CARP never matched because of IPPROTO_VRRP, which matched earlier. Remove the array element and the macro and leave some comments instead. --- ipproto.c | 3 +-- ipproto.h | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ipproto.c b/ipproto.c index 74a75d45..8083da51 100644 --- a/ipproto.c +++ b/ipproto.c @@ -46,11 +46,10 @@ const struct tok ipproto_values[] = { { IPPROTO_OSPF, "OSPF" }, { IPPROTO_PIM, "PIM" }, { IPPROTO_IPCOMP, "Compressed IP" }, - { IPPROTO_VRRP, "VRRP" }, + { IPPROTO_VRRP, "VRRP" }, /* See also CARP. */ { IPPROTO_PGM, "PGM" }, { IPPROTO_SCTP, "SCTP" }, { IPPROTO_MOBILITY, "Mobility" }, - { IPPROTO_CARP, "CARP" }, { 0, NULL } }; diff --git a/ipproto.h b/ipproto.h index 75def3d8..ac6fd2cb 100644 --- a/ipproto.h +++ b/ipproto.h @@ -129,10 +129,7 @@ extern const struct tok ipproto_values[]; #define IPPROTO_IPCOMP 108 #endif #ifndef IPPROTO_VRRP -#define IPPROTO_VRRP 112 -#endif -#ifndef IPPROTO_CARP -#define IPPROTO_CARP 112 +#define IPPROTO_VRRP 112 /* See also CARP. */ #endif #ifndef IPPROTO_PGM #define IPPROTO_PGM 113 -- 2.39.5