dev_mc_add(9)
π dev_mc_add(9) β Kernel API Manual π
okay bestie, welcome to the multicast address corner of the kernel, this one's a little cutie from the 9 section of the manual, so grab your strawberry drink and let's go π
β¨ NAME β¨
dev_mc_add β add a multicast address, that's literally the whole vibe π
πΈ SYNOPSIS πΈ
int dev_mc_add (struct net_device *dev , const unsigned char *addr );
π¦ ARGUMENTS π¦
devβ the device, like the actual network device you're doing this to πaddrβ the address you want to add, that's it, that's the girl π
β DESCRIPTION β
so what it does: it adds a multicast address to the device β iconic β OR, and this is the lowkey important part, if that address is already there, it just increases the reference count instead π₯
no duplicating, no drama, just a lil refcount bump, periodt π«Ά
π SEE ALSO π
kernel file ./net/core/dev_addr_lists.c, plus the whole friend group, and yes there are a LOT of them, no cap:
__hw_addr_sync_dev(9)__hw_addr_ref_sync_dev(9)__hw_addr_ref_unsync_dev(9)__hw_addr_unsync_dev(9)__hw_addr_list_snapshot(9)__hw_addr_list_reconcile(9)dev_addr_flush(9)dev_addr_init(9)dev_addr_add(9)dev_addr_del(9)dev_uc_add_excl(9)dev_uc_add(9)dev_uc_del(9)dev_uc_sync(9)dev_uc_sync_multiple(9)dev_uc_unsync(9)dev_uc_flush(9)dev_uc_init(9)dev_mc_add_excl(9)dev_mc_add_global(9)dev_mc_del(9)dev_mc_del_global(9)dev_mc_sync(9)dev_mc_sync_multiple(9)dev_mc_unsync(9)dev_mc_flush(9)dev_mc_init(9)netif_uc_promisc_update(9)__dev_set_rx_mode(9)netif_rx_mode_sync(9)
and that's the whole page bestie, stan ./net/core, dated October 2026, page name dev_mc_add(9) β mwah, go add some multicast addresses responsibly ππ§
π¦ 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