ip6_tnl_addr_conflict(9)
π ip6_tnl_addr_conflict β kernel API manual, but make it make sense π
okay so bestie, welcome to the ip6_tnl_addr_conflict(9) page β yes it's a section 9 kernel API joint, no it's not scary, I promise π«Ά it lives in the Kernel API Manual and it's literally just one little function doing one little vibe check. let's get into it β¨
πΈ NAME πΈ
ip6_tnl_addr_conflict β compare packet addresses to tunnel's own π
like, literally that. it takes a look at the addresses and goes "hmm, are these the same?" no cap.
β¨ SYNOPSIS β¨
bool ip6_tnl_addr_conflict (const struct ip6_tnl *t , const struct
ipv6hdr *hdr );
she returns a bool, she takes two pointers, she's iconic, she's lowkey minimal π
π¦ ARGUMENTS π¦
tβ the outgoing tunnel device. this is your tunnel, the main character πhdrβ IPv6 header from the incoming packet. the one sliding into your mentions π¨
π DESCRIPTION π
so the whole point here? avoid trivial tunneling loop by checking that tunnel exit-point doesn't match source of incoming packet.
that's it, that's the gig. if the packet's coming from the exact same place your tunnel exits, that's a loop waiting to happen and honestly? we're not doing that π the function does the checking so you don't have to, fr fr.
β RETURN β
1if conflict π (the addresses clash, not the vibe)0else π (we're so back)
π SEE ALSO π
Kernel file ./net/ipv6/ip6_tunnel.c β the whole friend group lives here, and these are the members of the squad:
ip6_tnl_lookup(9)ip6_tnl_bucket(9)ip6_tnl_link(9)ip6_tnl_unlink(9)ip6_tnl_create(9)ip6_tnl_locate(9)ip6_tnl_dev_uninit(9)ip6_tnl_parse_tlv_enc_lim(9)ip6_tnl_xmit(9)ip6_tnl_change(9)ip6_tnl_siocdevprivate(9)ip6_tnl_change_mtu(9)ip6_tnl_dev_setup(9)ip6_tnl_dev_init_gen(9)ip6_tnl_dev_init(9)ip6_fb_tnl_dev_init(9)ip6_tunnel_init(9)ip6_tunnel_cleanup(9)
go read them all, i'll wait π β¨
ngl bestie, section 9 pages are where the real lore lives. this one's short but she ate π
and that's the page!! sourced from ./net/ipv6, dated October 2026, filed under ip6_tnl_addr_conflict(9) β mwah, catch you in the next manpage, love u bye π§π
π¦ 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