40 #ifndef included_ip_ip4_error_h 41 #define included_ip_ip4_error_h 43 #define foreach_ip4_error \ 45 _ (NONE, "valid ip4 packets") \ 48 _ (TOO_SHORT, "ip4 length < 20 bytes") \ 49 _ (BAD_LENGTH, "ip4 length > l2 length") \ 50 _ (BAD_CHECKSUM, "bad ip4 checksum") \ 51 _ (VERSION, "ip4 version != 4") \ 52 _ (OPTIONS, "ip4 options present") \ 53 _ (FRAGMENT_OFFSET_ONE, "ip4 fragment offset == 1") \ 54 _ (TIME_EXPIRED, "ip4 ttl <= 1") \ 57 _ (MTU_EXCEEDED, "ip4 MTU exceeded and DF set") \ 58 _ (DST_LOOKUP_MISS, "ip4 destination lookup miss") \ 59 _ (SRC_LOOKUP_MISS, "ip4 source lookup miss") \ 60 _ (DROP, "ip4 drop") \ 61 _ (PUNT, "ip4 punt") \ 62 _ (SAME_INTERFACE, "ip4 egress interface same as ingress") \ 65 _ (UNKNOWN_PROTOCOL, "unknown ip protocol") \ 66 _ (TCP_CHECKSUM, "bad tcp checksum") \ 67 _ (UDP_CHECKSUM, "bad udp checksum") \ 68 _ (UDP_LENGTH, "inconsistent udp/ip lengths") \ 71 _ (UNICAST_SOURCE_CHECK_FAILS, "ip4 unicast source check fails") \ 74 _ (SPOOFED_LOCAL_PACKETS, "ip4 spoofed local-address packet drops") \ 77 _ (INACL_TABLE_MISS, "input ACL table-miss drops") \ 78 _ (INACL_SESSION_DENY, "input ACL session deny drops") \ 80 _ (OUTACL_TABLE_MISS, "output ACL table-miss drops") \ 81 _ (OUTACL_SESSION_DENY, "output ACL session deny drops") \ 84 _ (RPF_FAILURE, "Multicast RPF check failed") \ 87 _ (REASS_DUPLICATE_FRAGMENT, "duplicate/overlapping fragments") \ 88 _ (REASS_LIMIT_REACHED, "drops due to concurrent reassemblies limit") \ 89 _ (REASS_MALFORMED_PACKET, "malformed packets") \ 90 _ (REASS_INTERNAL_ERROR, "drops due to internal reassembly error") 94 #define _(sym,str) IP4_ERROR_##sym,
#define foreach_ip4_error