netlbl_domhsh_remove_af6(9)
π NAME π
netlbl_domhsh_remove_af6 β bestie, this one Removes an address selector entry. That's it, that's the whole vibe. And yeah, it lives in the Kernel API Manual, section 9, iykyk π§
β¨ SYNOPSIS β¨
int netlbl_domhsh_remove_af6 (const char *domain , const struct in6_addr
*addr , const struct in6_addr *mask , struct netlbl_audit *audit_info );
okay so it returns an int, takes four args, and the line breaks in the middle of the struct in6_addr declaration are a choice β not me, that's just how it's written π«Ά copy it exactly, no cap.
π ARGUMENTS π
domainβ the domain. just... the domain. that's the whole description. iconic minimalism lowkey πaddrβ IPv6 address. yes it's an address. yes it's IPv6. we move πmaskβ IPv6 address mask, the matching bestie toaddrπ¦audit_infoβ NetLabel audit information β the receipts, basically, for the audit trail π
πΈ DESCRIPTION πΈ
So what does it actually do? It removes an individual address selector from a domain mapping, and β this is the juicy part β it potentially removes the entire mapping if it is empty. like, if the selector was the last one holding the whole thing together? the mapping leaves too. not me getting emotionally attached to a domain mapping π
Return value check, because we always do a vibe check on returns: it returns zero on success, and negative values on failure. no cap, that's the contract π
π¦ SEE ALSO π¦
The kernel file this lives in, in all its glory:
./net/netlabel/netlabel_domainhash.c
and the whole friend group, fr fr β go read these too:
netlbl_domhsh_free_entry(9)netlbl_domhsh_hash(9)netlbl_domhsh_search(9)netlbl_domhsh_search_def(9)netlbl_domhsh_audit_add(9)netlbl_domhsh_validate(9)netlbl_domhsh_init(9)netlbl_domhsh_add(9)netlbl_domhsh_add_default(9)netlbl_domhsh_remove_entry(9)netlbl_domhsh_remove_af4(9)netlbl_domhsh_remove(9)netlbl_domhsh_remove_default(9)netlbl_domhsh_getentry(9)netlbl_domhsh_getentry_af4(9)netlbl_domhsh_getentry_af6(9)netlbl_domhsh_walk(9)
π okay that's the whole page, you ate that. this one's filed under./net/netlabel, dated October 2026, and you can find it again under the namenetlbl_domhsh_remove_af6(9). slay, bye bestie! πβ¨
π¦ 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