netlbl_unlhsh_add_addr6(9)
π netlbl_unlhsh_add_addr6(9) π
okay so bestie, welcome to the Kernel API Manual section for netlbl_unlhsh_add_addr6 β yes that's the whole manual name, we're in kernel-land now, no cap. This one is a lil function in ./net/netlabel and she's here to add IPv6 address entries to a hash table. iykyk. π¦
β¨ NAME β¨
netlbl_unlhsh_add_addr6 β add a brand-new IPv6 address entry to the hash table</p> π
πΈ SYNOPSIS πΈ
int netlbl_unlhsh_add_addr6 (struct netlbl_unlhsh_iface *iface , const
struct in6_addr *addr , const struct in6_addr *mask , u32 secid );
she takes four arguments and gives you back an int, that's the whole vibe. π
π¦ ARGUMENTS π¦
ifaceβ the associated interface entry. like, the interface she's gonna attach this address to. πaddrβ the IPv6 address, in network byte order. yes, network byte order, don't come at me with host order, that's a different situation entirely. πmaskβ the IPv6 address mask, also in network byte order. same rules bestie. β¨secidβ the LSM secid value for the entry. it's au32, she's little but she matters. π
π DESCRIPTION π
so what she actually does: she adds a new address entry into the unlabeled connection hash table, using the interface entry you passed in as iface. that's it, that's the job. π«Ά
On success she returns zero β slay. Otherwise she returns a negative value, which is your sign that something did not go to plan, and you should probably go look at the return code instead of ignoring it. π
ngl bestie, no zero-return means no happy ending. check your negative value fr fr. π
β SEE ALSO β
- Kernel file
./net/netlabel/netlabel_unlabeled.cβ the actual source, go read her π§
and the whole friend group, all in section (9), all present and accounted for:
netlbl_unlhsh_free_iface(9)netlbl_unlhsh_hash(9)netlbl_unlhsh_search_iface(9)netlbl_unlhsh_add_addr4(9)netlbl_unlhsh_add_iface(9)netlbl_unlhsh_add(9)netlbl_unlhsh_remove_addr4(9)netlbl_unlhsh_remove_addr6(9)netlbl_unlhsh_condremove_iface(9)netlbl_unlhsh_remove(9)netlbl_unlhsh_netdev_handler(9)netlbl_unlabel_acceptflg_set(9)netlbl_unlabel_addrinfo_get(9)netlbl_unlabel_accept(9)netlbl_unlabel_list(9)netlbl_unlabel_staticadd(9)netlbl_unlabel_staticadddef(9)netlbl_unlabel_staticremove(9)netlbl_unlabel_staticremovedef(9)netlbl_unlabel_staticlist_gen(9)netlbl_unlabel_staticlist(9)netlbl_unlabel_staticlistdef(9)netlbl_unlabel_genl_init(9)netlbl_unlabel_init(9)netlbl_unlabel_getattr(9)netlbl_unlabel_defconf(9)
like, that's the entire group chat, bestie. every single one of them. π₯
and that's the page!! π this iconic lil number lives under ./net/netlabel and she's dated October 2026 β so go add those IPv6 entries, return your zero, and remember: network byte order always. 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