ipv6_renew_options(9)
πΈ NAME πΈ
hiii bestie π welcome to the ipv6_renew_options(9) page from the Kernel API Manual β yes, we're in kernel API territory and we're thriving.
ipv6_renew_options β replace a specific ext hdr with a new one. β¨
β¨ SYNOPSIS β¨
Here's the signature, copied exactly so you can trust it with your whole life:
struct ipv6_txoptions * ipv6_renew_options (struct sock *sk , struct ipv6_txoptions *opt , int newtype , struct ipv6_opt_hdr *newopt );
π ARGUMENTS π
skβ the sock from which to allocate memory. Your memory source, bestie π«Άoptβ original options. The base set we're copying, okay?newtypeβ option type to replace inopt.newoptβ new option of typenewtypeto replace (user-mem).
π DESCRIPTION π
Returns a new set of options which is a copy of opt with the option type newtype replaced with newopt. It's giving "glow-up for one specific option" π«
opt may be NULL, in which case a new set of options is returned containing just newopt. iconic behavior, honestly.
newopt may be NULL, in which case the specified option type is not copied into the new set of options. so real for that.
The new set of options is allocated from the socket option memory buffer of sk. no cap, that's where the memory comes from.
π SEE ALSO π
- Kernel file
./net/ipv6/exthdrs.c __fl6_update_dst(9)
mwah π β this little page comes from the ./net/ipv6 source, October 2026 edition. go be iconic with your ext hdrs π«Άβ¨
π¦ 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