]>
git.proxmox.com Git - ceph.git/blob - ceph/src/msg/async/dpdk/const.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
3 * This file is open source software, licensed to you under the terms
4 * of the Apache License, Version 2.0 (the "License"). See the NOTICE file
5 * distributed with this work for additional information regarding copyright
6 * ownership. You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
20 * Copyright (C) 2014 Cloudius Systems, Ltd.
23 #ifndef CEPH_MSG_CONST_H_
24 #define CEPH_MSG_CONST_H_
28 enum class ip_protocol_num
: uint8_t {
29 icmp
= 1, tcp
= 6, unused
= 255
32 enum class eth_protocol_num
: uint16_t {
33 ipv4
= 0x0800, arp
= 0x0806, ipv6
= 0x86dd
36 const uint8_t eth_hdr_len
= 14;
37 const uint8_t tcp_hdr_len_min
= 20;
38 const uint8_t ipv4_hdr_len_min
= 20;
39 const uint8_t ipv6_hdr_len_min
= 40;
40 const uint16_t ip_packet_len_max
= 65535;