---
name: "RTE_ETHER_GTP_HLEN"
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_gtp.h"
---

# RTE\_ETHER\_GTP\_HLEN(3)

Part of [rte\_gtp.h(3)](/rte_gtp.h/3.md).

## NAME

rte\_gtp.h

## SYNOPSIS

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

### Data Structures

struct **rte\_gtp\_hdr**\
 struct **rte\_gtp\_psc\_generic\_hdr**\
 struct **rte\_gtp\_psc\_type0\_hdr**\
 struct **rte\_gtp\_psc\_type1\_hdr**\

### Macros

\#define **RTE\_ETHER\_GTP\_HLEN**   	(sizeof(struct **rte\_udp\_hdr**) + sizeof(struct **rte\_gtp\_hdr**))\
 \#define **RTE\_GTP\_TYPE\_IPV4**   0x40\
 \#define **RTE\_GTP\_TYPE\_IPV6**   0x60\
 \#define **RTE\_GTPC\_UDP\_PORT**   2123\
 \#define **RTE\_GTPU\_UDP\_PORT**   2152\

## Detailed Description

GTP-related defines

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

## Macro Definition Documentation

### #define RTE\_ETHER\_GTP\_HLEN (sizeof(struct rte\_udp\_hdr) + sizeof(struct rte\_gtp\_hdr))

GTP header length

Definition at line **140** of file **rte\_gtp.h**.

### #define RTE\_GTP\_TYPE\_IPV4 0x40

GTP next protocol type IPv4

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

### #define RTE\_GTP\_TYPE\_IPV6 0x60

GTP next protocol type IPv6

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

### #define RTE\_GTPC\_UDP\_PORT 2123

GTP-C UDP destination port

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

### #define RTE\_GTPU\_UDP\_PORT 2152

GTP-U UDP destination port

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
