STRUCT UDP_TABLE(9)
π NAME π
okay bestie, welcome to the struct udp_table(9) page in the Kernel API Manual β and yes, this is literally the UDP table. struct udp_table β UDP table. Thatβs the whole vibe. π
β¨
π¦ SYNOPSIS π¦
hereβs the struct in all its iconic glory, no cap:
struct udp_table {
struct udp_hslot *hash;
struct udp_hslot_main *hash2;
#if !IS_ENABLED(CONFIG_BASE_SMALL);
struct udp_hslot *hash4;
#endif;
unsigned int mask;
unsigned int log;
};
that #if !IS_ENABLED(CONFIG_BASE_SMALL); situation around hash4? yeah, itβs right there in the struct, bestie π«Ά
πΈ Members πΈ
hashβ hash table, sockets are hashed on (local port) πhash2β hash table, sockets are hashed on (local port, local address) πhash4β hash table, connected sockets are hashed on (local port, local address, remote port, remote address) π¦maskβ number of slots in hash tables, minus 1 π₯logβ log2(number of slots in hash table) β
like, each member is doing its own little main character thing, and honestly? obsessed ππ
π₯ SEE ALSO π₯
go peek at these besties, fr fr:
- Kernel file
./include/net/udp.hπ struct udp_skb_cb(9)π§struct udp_hslot(9)β¨struct udp_hslot_main(9)πudp_csum_outgoing(9)π
mwah π β this little page is sourced from ./include/net, dated October 2026, and itβs struct udp_table(9) in the Kernel API Manual. go off, bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms