From b29c60660a69ae892495de65e8c5147052c84ef5 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 12 Aug 2022 01:50:24 +0000 Subject: ip: Use .api declarative counters for ICMP. Type: improvement Signed-off-by: Neale Ranns Change-Id: I3d36faa60075658fd59eb5bbe16efcb48664691b --- src/vnet/ip/icmp4.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/vnet/ip/icmp4.h') diff --git a/src/vnet/ip/icmp4.h b/src/vnet/ip/icmp4.h index e2a95673fc7..22a4fc508e5 100644 --- a/src/vnet/ip/icmp4.h +++ b/src/vnet/ip/icmp4.h @@ -15,29 +15,6 @@ #ifndef included_vnet_icmp4_h #define included_vnet_icmp4_h -#define foreach_icmp4_error \ - _ (NONE, "valid packets") \ - _ (UNKNOWN_TYPE, "unknown type") \ - _ (INVALID_CODE_FOR_TYPE, "invalid code for type") \ - _ (INVALID_HOP_LIMIT_FOR_TYPE, "hop_limit != 255") \ - _ (LENGTH_TOO_SMALL_FOR_TYPE, "payload length too small for type") \ - _ (OPTIONS_WITH_ODD_LENGTH, \ - "total option length not multiple of 8 bytes") \ - _ (OPTION_WITH_ZERO_LENGTH, "option has zero length") \ - _ (ECHO_REPLIES_SENT, "echo replies sent") \ - _ (DST_LOOKUP_MISS, "icmp6 dst address lookup misses") \ - _ (DEST_UNREACH_SENT, "destination unreachable response sent") \ - _ (TTL_EXPIRE_SENT, "hop limit exceeded response sent") \ - _ (PARAM_PROBLEM_SENT, "parameter problem response sent") \ - _ (DROP, "error message dropped") - -typedef enum -{ -#define _(f,s) ICMP4_ERROR_##f, - foreach_icmp4_error -#undef _ -} icmp4_error_t; - typedef struct { u8 packet_data[64]; -- cgit 1.2.3-korg