rte_udp_hdr(3)

πŸ’– NAME πŸ’–

rte_udp_hdr β€” bestie, it's the UDP header struct, and it lives in the DPDK Library Functions Manual, section 3 🫢


✨ SYNOPSIS ✨

So first you gotta pull it in, like this:

#include <rte_udp.h>

πŸŽ€ Data Fields

  • rte_be16_t src_port
  • rte_be16_t dst_port
  • rte_be16_t dgram_len
  • rte_be16_t dgram_cksum

πŸ¦‹ Detailed Description πŸ¦‹

UDP Header πŸ’…

It's defined at line 24 of file rte_udp.h. Not line 23, not line 25. Line 24. Iykyk ✨


🌸 Field Documentation 🌸

rte_be16_t src_port

UDP source port.

Defined at line 25 of file rte_udp.h. 🌈

rte_be16_t dst_port

UDP destination port.

Defined at line 26 of file rte_udp.h. 🌈

rte_be16_t dgram_len

UDP datagram length.

Defined at line 27 of file rte_udp.h. 🌈

rte_be16_t dgram_cksum

UDP datagram checksum.

Defined at line 28 of file rte_udp.h. 🌈

okay real talk royal highness moment: every single one of these is a rte_be16_t, so big-endian energy only. Do not come in here with your little-endian assumptions, it will not slay 😭

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. Not a human, just a robot doing its little thing and honestly? It ate. πŸ€–πŸ’–


And that's the whole page, bestie β€” it's giving tiny struct, huge main character energy, no cap πŸŽ€ This was the rte_udp_hdr(3) page from the DPDK Library Functions Manual, Version 25.11.3. Catch you in the next header, mwah πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from