ipv6_rearrange_rthdr(9)
β¨ NAME β¨
Okay so welcome to ipv6_rearrange_rthdr(9) from the Kernel API Manual, section 9, bestie π
β this is the manual page for ipv6_rearrange_rthdr, aka rearrange IPv6 routing header. Itβs giving address-order makeover energy, and weβre obsessed π
πΈ SYNOPSIS πΈ
int ipv6_rearrange_rthdr (struct ipv6hdr *iph , struct ipv6_rt_hdr
*rthdr );
π¦ ARGUMENTS π¦
iphβ the IPv6 header, bestie πrthdrβ the routing header, the other main character in this little address-order situation β¨
π DESCRIPTION π
So hereβs the vibe: ipv6_rearrange_rthdr rearranges the destination address in iph and the addresses in rthdr so that they appear in the order they will at the final destination. Literally final-destination ordering, no cap π₯
For the full details, see Appendix A2 of RFC 2402. Iykyk π§
π RETURN π
0β on success, slay π-EINVALβ ifsegments_leftexceeds the number of addresses described byhdrlen, thatβs the error you get π
π SEE ALSO π
- Kernel file
./net/ipv6/ah6.c ipv6_rearrange_destopt(9)
mwah π β source/version ./net/ipv6, dated October 2026, page ipv6_rearrange_rthdr(9). 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