STRUCT UDP_SKB_CB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Bestie, welcome to the Kernel API Manual page for struct udp_skb_cb(9) β€” aka the struct udp_skb_cb, and her whole personality is UDP private variables. That's the assignment. That's the vibe. πŸ’…

✨ SYNOPSIS ✨

Okay so here's the struct in all her exactly-as-written glory, no cap:

       struct udp_skb_cb {
           union {
             struct inet_skb_parm    h4;
         #if IS_ENABLED(CONFIG_IPV6);
             struct inet6_skb_parm   h6;
         #endif;
           } header;
        };

Lowkey iconic: there's a union called header holding the IPv4/IPv6 private-variable situation, and the IPv6 arm is gated by #if IS_ENABLED(CONFIG_IPV6);. πŸ¦‹

πŸŽ€ Members πŸŽ€

  • header β€” the private variables used by IPv4/IPv6, living inside the union. Yes ma'am, that's the whole member list. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/net/udp.h plus the rest of the squad: struct udp_hslot(9), struct udp_hslot_main(9), struct udp_table(9), and udp_csum_outgoing(9). Go read them, bestie, they're right there. πŸ“šβœ¨


Cute lil footer sign-off: source/version ./include/net, date October 2026, page struct udp_skb_cb(9) β€” mwah, bye bestie πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from