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 _ (ADJACENCY_DROP, "ip4 adjacency drop") \ 61 _ (ADJACENCY_PUNT, "ip4 adjacency punt") \ 64 _ (UNKNOWN_PROTOCOL, "unknown ip protocol") \ 65 _ (TCP_CHECKSUM, "bad tcp checksum") \ 66 _ (UDP_CHECKSUM, "bad udp checksum") \ 67 _ (UDP_LENGTH, "inconsistent udp/ip lengths") \ 70 _ (UNICAST_SOURCE_CHECK_FAILS, "ip4 unicast source check fails") \ 73 _(SPOOFED_LOCAL_PACKETS, "ip4 spoofed local-address packet drops") \ 76 _ (INACL_TABLE_MISS, "input ACL table-miss drops") \ 77 _ (INACL_SESSION_DENY, "input ACL session deny drops") 80 #define _(sym,str) IP4_ERROR_##sym,
#define foreach_ip4_error