udp_internals(3)

πŸ“¦
version 1.0.5 Β· 4 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ udp_internals ✨

okay so bestie, welcome to the udp_internals(3) page πŸ’– this is a Library Functions Manual situation, and honestly? it's giving backstage pass energy. you're in the library functions part of the building now.


🌸 NAME 🌸

udp_internals β€” Internal UDP functions πŸ¦‹

like… the secret little helpers. the ones behind the curtain. iykyk.


πŸ’… SYNOPSIS πŸ’…

Functions

void nfq_udp_compute_checksum_ipv4 (struct udphdr *udph, struct iphdr *iph)
void nfq_udp_compute_checksum_ipv6 (struct udphdr *udph, struct ip6_hdr *ip6h)

two functions. that's the whole lineup. periodt. πŸ‘‘


πŸŽ€ Detailed Description πŸŽ€

Most user-space programs will never need these.

fr fr. like, no cap β€” if you're writing a normal little user-space program, these are not your problem, bestie. they're internal. the vibes are backstage, not main stage. πŸ’€


🧚 Function Documentation 🧚

void nfq_udp_compute_checksum_ipv4 (struct udphdr * udph, struct iphdr * iph)

nfq_udp_compute_checksum_ipv4 β€” sets up the UDP checksum in a UDP/IPv4 packet. that's it, that's the job, and it does it slayfully. ✨

Parameters

  • udph β€” pointer to the UDP header 🫢
  • iph β€” pointer to the IPv4 header πŸ’œ

Note

nfq_udp_mangle_ipv4() invokes this function. As long as developers always use nfq_udp_mangle_ipv4 when changing the content of a UDP message, there is no need to call nfq_udp_compute_checksum_ipv4.

so like… the way that nfq_udp_mangle_ipv4() already calls this for you?? πŸ₯Ή if you always use nfq_udp_mangle_ipv4 when you're changing the content of a UDP message, you genuinely do not need to call nfq_udp_compute_checksum_ipv4 yourself. it's already handled. don't do extra work, it's not the vibe. πŸ’…

Definition at line 108 of file udp.c. πŸ“


void nfq_udp_compute_checksum_ipv6 (struct udphdr * udph, struct ip6_hdr * ip6h)

nfq_udp_compute_checksum_ipv6 β€” sets up the UDP checksum in a UDP/IPv6 packet. same energy, different protocol, iconic as always. 🌈

Parameters

  • udph β€” pointer to the UDP header 🫢
  • ip6h β€” pointer to the IPv6 header ⭐

Note

nfq_udp_mangle_ipv6() invokes this function. As long as developers always use nfq_udp_mangle_ipv6 when changing the content of a UDP message, there is no need to call nfq_udp_compute_checksum_ipv6.

yeah bestie, same deal as the IPv4 one β€” nfq_udp_mangle_ipv6() invokes this function, so as long as you always use nfq_udp_mangle_ipv6 when you're changing the content of a UDP message, there is no need to call nfq_udp_compute_checksum_ipv6. the mangle function is your main character, let it cook. πŸ“

Definition at line 126 of file udp.c. πŸ“


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libnetfilter_queue from the source code.

(not me getting auto-generated by doxygen 😭 it's literally a machine-written baddie)


and that's the whole page, bestie!! πŸŽ€ this was libnetfilter_queue, Version 1.0.5, and the page is udp_internals(3) β€” we did it, we read the whole thing, ate and left no crumbs. mwah πŸ’–βœ¨