---
name: "rte_vxlan.h"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_vxlan.h"
---

# rte\_vxlan.h(3)

## NAME

rte\_vxlan.h

## SYNOPSIS

`#include <stdint.h>`\
 `#include <rte_byteorder.h>`\
 `#include <rte_udp.h>`\

### Data Structures

struct **rte\_vxlan\_hdr**\
 struct **rte\_vxlan\_gpe\_hdr**\

### Macros

\#define **RTE\_VXLAN\_DEFAULT\_PORT**   4789\
 \#define **RTE\_VXLAN\_GPE\_DEFAULT\_PORT**   4790\
 \#define **RTE\_ETHER\_VXLAN\_HLEN**   	(sizeof(struct **rte\_udp\_hdr**) + sizeof(struct **rte\_vxlan\_hdr**))\
 \#define **RTE\_ETHER\_VXLAN\_GPE\_HLEN**\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_IPV4**   1\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_IPV6**   2\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_ETH**   3\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_NSH**   4\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_MPLS**   5\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_GBP**   6\
 \#define **RTE\_VXLAN\_GPE\_TYPE\_VBNG**   7\

## Detailed Description

VXLAN-related definitions

Definition in file **rte\_vxlan.h**.

## Macro Definition Documentation

### #define RTE\_VXLAN\_DEFAULT\_PORT 4789

VXLAN default port.

Definition at line **20** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_DEFAULT\_PORT 4790

VXLAN GPE port.

Definition at line **22** of file **rte\_vxlan.h**.

### #define RTE\_ETHER\_VXLAN\_HLEN (sizeof(struct rte\_udp\_hdr) + sizeof(struct rte\_vxlan\_hdr))

VXLAN tunnel header length.

Definition at line **101** of file **rte\_vxlan.h**.

### #define RTE\_ETHER\_VXLAN\_GPE\_HLEN

**Value:**.PP

```
        (sizeof(struct rte_udp_hdr) + \
        sizeof(struct rte_vxlan_gpe_hdr))
```

**Deprecated**

**See also**

**RTE\_ETHER\_VXLAN\_HLEN**

VXLAN-GPE tunnel header length.

Definition at line **138** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_IPV4 1

IPv4 Protocol.

Definition at line **142** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_IPV6 2

IPv6 Protocol.

Definition at line **143** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_ETH 3

Ethernet Protocol.

Definition at line **144** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_NSH 4

NSH Protocol.

Definition at line **145** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_MPLS 5

MPLS Protocol.

Definition at line **146** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_GBP 6

GBP Protocol.

Definition at line **147** of file **rte\_vxlan.h**.

### #define RTE\_VXLAN\_GPE\_TYPE\_VBNG 7

vBNG Protocol.

Definition at line **148** of file **rte\_vxlan.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
