br_multicast_list_adjacent(9)
π br_multicast_list_adjacent(9)
okay so you're in the Kernel API Manual, section 9, and today's main character is br_multicast_list_adjacent(9). bestie, this one is gonna make so much sense, i promise π«Ά
β¨ NAME β¨
br_multicast_list_adjacent β literally just returns snooped multicast addresses, no cap π¦
πΈ SYNOPSIS πΈ
int br_multicast_list_adjacent (struct net_device *dev , struct
list_head *br_ip_list );
look at that signature. gorgeous. iconic. the way that int is just sitting there ready to hand you a count π
π ARGUMENTS π
devβ the bridge port adjacent to which to retrieve addresses. yes, "adjacent to which", we're being fancy today. it's the port whose neighbours we're snooping around πbr_ip_listβ the list where we stash all the found, snooped multicast IP addresses. it's the lil basket you're handing us π§Ίβ¨
π¦ DESCRIPTION π¦
So here's the vibe: this function creates a list of IP addresses (as struct br_ip_list) that the multicast snooping feature sensed on all bridge ports of dev's bridge device β but with one very important exclusion: it skips the addresses coming from dev itself. like, we're nosy but we're not that nosy π
Then it returns the number of items it added to br_ip_list. nice and countable, we love a return value with a job π₯
π NOTES π
okay bestie, listen up, these are the ones that bite if you ignore them:
br_ip_listneeds to be initialized by the caller β that's you, you're the caller, do the init π«‘br_ip_listmight contain duplicates in the end, so it needs to be taken care of by the caller. yes, dedupe responsibilty is yours, not ours πbr_ip_listneeds to be freed by the caller. please, please free it. do not leave it hanging π
fr fr, all three of those are on you. we just fill the list, we don't babysit it.
π SEE ALSO π
- Kernel file
./net/bridge/br_multicast.cβ the source, the lore, the origin story π br_multicast_has_querier_anywhere(9)br_multicast_has_querier_adjacent(9)br_multicast_has_router_adjacent(9)
the whole multicast bestie squad, iykyk π
and that's the page!! sign-off time: this little masterpiece lives in ./net/bridge, dated October 2026, and it's part of the Kernel API Manual β stan forever, 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