15 #ifndef included_vnet_icmp4_h 16 #define included_vnet_icmp4_h 18 #define foreach_icmp4_error \ 19 _ (NONE, "valid packets") \ 20 _ (UNKNOWN_TYPE, "unknown type") \ 21 _ (INVALID_CODE_FOR_TYPE, "invalid code for type") \ 22 _ (INVALID_HOP_LIMIT_FOR_TYPE, "hop_limit != 255") \ 23 _ (LENGTH_TOO_SMALL_FOR_TYPE, "payload length too small for type") \ 24 _ (OPTIONS_WITH_ODD_LENGTH, \ 25 "total option length not multiple of 8 bytes") \ 26 _ (OPTION_WITH_ZERO_LENGTH, "option has zero length") \ 27 _ (ECHO_REPLIES_SENT, "echo replies sent") \ 28 _ (DST_LOOKUP_MISS, "icmp6 dst address lookup misses") \ 29 _ (DEST_UNREACH_SENT, "destination unreachable response sent") \ 30 _ (TTL_EXPIRE_SENT, "hop limit exceeded response sent") \ 31 _ (PARAM_PROBLEM_SENT, "parameter problem response sent") \ 32 _ (DROP, "error message dropped") 36 #define _(f,s) ICMP4_ERROR_##f,
#define static_always_inline
vl_api_fib_path_type_t type
#define foreach_icmp4_error
void ip4_icmp_register_type(vlib_main_t *vm, icmp4_type_t type, u32 node_index)
struct _vlib_node_registration vlib_node_registration_t
VLIB buffer representation.
format_function_t format_icmp4_input_trace
vlib_node_registration_t ip4_icmp_input_node
(constructor) VLIB_REGISTER_NODE (ip4_icmp_input_node)
static_always_inline void icmp4_error_set_vnet_buffer(vlib_buffer_t *b, u8 type, u8 code, u32 data)