30enum class ip_protocol_num : uint8_t {
31 icmp = 1, tcp = 6, udp = 17, unused = 255
34enum class eth_protocol_num : uint16_t {
35 ipv4 = 0x0800, arp = 0x0806, ipv6 = 0x86dd
38const uint8_t eth_hdr_len = 14;
39const uint8_t tcp_hdr_len_min = 20;
40const uint8_t ipv4_hdr_len_min = 20;
41const uint8_t ipv6_hdr_len_min = 40;
42const uint16_t ip_packet_len_max = 65535;
Seastar API namespace.
Definition: abort_on_ebadf.hh:26