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 egrees 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") 82 #define _(sym,str) IP4_ERROR_##sym,
#define foreach_ip4_error