Blog
Community
Development
Documentation
CNDP
22.08.0
cnet_ip_common.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2016-2022 Intel Corporation
3
*/
4
5
#ifndef __CNET_IP_COMMON_H
6
#define __CNET_IP_COMMON_H
7
13
#include <
cnet_ipv4.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
/* Common defines for Ethernet */
20
enum
{
21
ETH_HW_TYPE
= 1,
22
ETH_VLAN_ENCAP_LEN
= 4
23
};
24
25
/* Extra EtherTypes */
26
enum
{
27
ETHER_TYPE_MPLS_UNICAST
= 0x8847,
28
ETHER_TYPE_MPLS_MULTICAST
= 0x8848,
29
ETHER_TYPE_Q_IN_Q
= 0x88A8,
30
ETHER_TYPE_TRANSP_ETH_BR
= 0x6558
31
};
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
/* __CNET_IP_COMMON_H */
ETH_HW_TYPE
@ ETH_HW_TYPE
Definition:
cnet_ip_common.h:21
ETH_VLAN_ENCAP_LEN
@ ETH_VLAN_ENCAP_LEN
Definition:
cnet_ip_common.h:22
ETHER_TYPE_MPLS_MULTICAST
@ ETHER_TYPE_MPLS_MULTICAST
Definition:
cnet_ip_common.h:28
ETHER_TYPE_Q_IN_Q
@ ETHER_TYPE_Q_IN_Q
Definition:
cnet_ip_common.h:29
ETHER_TYPE_TRANSP_ETH_BR
@ ETHER_TYPE_TRANSP_ETH_BR
Definition:
cnet_ip_common.h:30
ETHER_TYPE_MPLS_UNICAST
@ ETHER_TYPE_MPLS_UNICAST
Definition:
cnet_ip_common.h:27
cnet_ipv4.h
lib
cnet
incs
cnet_ip_common.h
Generated by
1.9.1