slave_set_ns_maddr(9)
π slave_set_ns_maddr(9) β like, the manual, but make it make sense π
okay bestie, so this is a page from the Kernel API Manual (yes, the (9) section, we love a kernel-internals moment β¨) and it's all about slave_set_ns_maddr. sit down, grab a strawberry, we're doing this π
πΈ NAME πΈ
slave_set_ns_maddr β sets a brand new NS mac address for a slave. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
void slave_set_ns_maddr (struct bonding *bond , struct slave *slave ,
struct in6_addr *target , struct in6_addr *slot );
literally just a void function, no return value, we love a function that doesn't need to report back π«Ά
π¦ ARGUMENTS π¦
bondβ the bond device πslaveβ the slave device, obviously πtargetβ the new IPv6 target, the main character of this operation βslotβ the old IPv6 target that's currently chilling in the slot π
π DESCRIPTION π
so what it does: this function tries to replace the old mac address with a new one on the slave. glow-up for the mac address, fr fr β¨π
β οΈ okay, important note, don't skip this one: thetarget/slotIPv6 address is the unicast address in the Neighbor Solicitation (NS) message. the dest address of the NS message should be the solicited-node multicast address of the target. and the dest mac of the NS message is converted from that solicited-node multicast address. so like, that chain of address magic is load-bearing, iykyk π§
and this function gets called when:
- An IPv6 NS target is added or removed. π₯
(single bullet, but an iconic single bullet π)
π SEE ALSO π
the kernel file ./drivers/net/bonding/bond_options.c is the home base for all of these besties:
bond_opt_parse(9)__bond_opt_set(9)__bond_opt_set_notify(9)bond_opt_tryset_rtnl(9)bond_opt_get(9)slave_set_ns_maddrs(9)β yes, plural, it's a different function, don't mix them up bestie π
π sign-off π
this little beauty lives under ./drivers/net/bonding, and the page is dated October 2026. that's it, that's the page, go forth and set those NS mac addresses ππ¦πΈ 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