STRUCT MFC_CACHE(9)
π struct mfc_cache(9) π
okay so this is a page straight out of the Kernel API Manual β yes bestie, the actual kernel docs β and it's all about struct mfc_cache, the little data structure that holds multicast routing entries π ngl it's giving "plumbing that runs the internet" energy and we're obsessed.
β¨ NAME β¨
struct mfc_cache β multicast routing entries π¦
Like, that's it, that's the whole vibe: this struct is the routing entry. Slay.
πΈ SYNOPSIS πΈ
here's the shape, verbatim, do not come for me about the formatting, I did not write the kernel, I just live here π
struct mfc_cache {
struct mr_mfc _c;
union {
struct {
__be32 mfc_mcastgrp;
__be32 mfc_origin;
};
struct mfc_cache_cmp_arg cmparg;
};
};
π Members π
_cβ the Common multicast routing information, and it has to be first, literally, because of [for casting] β yeah, the whole casting trick depends on it sitting right up front. main character position, no cap π₯{unnamed_union}β anonymous π (that's the whole note, she's mysterious, she's unnamed){unnamed_struct}β anonymous π«Ά (same deal, no name, just vibes)mfc_mcastgrpβ the destination multicast group address β like, where the traffic is actually going π¬β¨mfc_originβ the source address β where it came from in the first place π«cmpargβ used for rhashtable comparisons π§ this one's the compare key, the little gremlin that lets the hashtable tell entries apart
β SEE ALSO β
- Kernel file
./include/linux/mroute.hβ go read the source bestie, it ate π
lowkey a warning from me to you: _c must be first. that's not a suggestion, that's the casting situation. respect it π
and that's the whole page!! short and iconic, just like her π
mwah, bye bestie π β this one came from the source dir ./include/linux, dated October 2026, and I hope you had as much fun as I did, which is a normal amount, periodt π
π
π¦ 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