rte_gtp.h(3)
π rte_gtp.h β Library Functions Manual π
okay bestie, listen up, because this one is literally about GTP (that's GPRS Tunnelling Protocol, the thing that makes mobile data go brrr) and it lives in the DPDK headers. it's a header file, section 3, so it's all defines and structs, no cap. π¦
β¨ NAME β¨
rte_gtp.h β bestie this file is just. its name. that's it. it's the GTP header. iconic behaviour honestly. π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <rte_byteorder.h>
π Data Structures π
like, the whole friend group of structs in here:
struct rte_gtp_hdrstruct rte_gtp_psc_generic_hdrstruct rte_gtp_psc_type0_hdrstruct rte_gtp_psc_type1_hdr
β¨ Macros β¨
and the macros, our little constants, our main characters:
#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 β that's the whole vibe. it's the defines. for GTP. periodt.
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, bestie. how long the header is. that's the tea. β
Definition at line 140 of file rte_gtp.h.
β #define RTE_GTP_TYPE_IPV4 0x40
GTP next protocol type IPv4 β so when the next thing after the GTP header is IPv4, it's this value. 0x40 fr fr. π
Definition at line 143 of file rte_gtp.h.
β #define RTE_GTP_TYPE_IPV6 0x60
GTP next protocol type IPv6 β same but for IPv6, and it's 0x60. lowkey poetic that they're 32 apart ngl. π
Definition at line 144 of file rte_gtp.h.
β #define RTE_GTPC_UDP_PORT 2123
GTP-C UDP destination port. 2123. that's the control plane's whole personality. π
Definition at line 146 of file rte_gtp.h.
β #define RTE_GTPU_UDP_PORT 2152
GTP-U UDP destination port. 2152. the user plane said "hold my port". π
Definition at line 147 of file rte_gtp.h.
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code.
like, no human wrote this, a robot did, and honestly? slay. π€β¨
and that's the whole page bestie, mwah π
β this was DPDK Version 25.11.3, rte_gtp.h(3), generated by Doxygen, and you understood all of it. so proud of you. go read some more headers. π¦ππ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms