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_hdr
  • struct rte_gtp_psc_generic_hdr
  • struct rte_gtp_psc_type0_hdr
  • struct 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