iptfs_prepare_output(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is iptfs_prepare_output from the Kernel API Manual β€” it's the function that prepares the skb for output. iconic behavior only. πŸŽ€βœ¨

✨ SYNOPSIS ✨

int iptfs_prepare_output (struct xfrm_state *x , struct sk_buff *skb );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • x β€” xfrm state. literally the xfrm_state, no cap. πŸ’…
  • skb β€” the packet. the packet itself, bestie. 🫢

πŸ”₯ RETURN πŸ”₯

It gives back an error value. If it comes back 0, then the skb values should be set up like this, periodt:

  • transport_header should point at the ESP header
  • network_header should point at the Outer IP header
  • mac_header should point at protocol/nexthdr of the outer IP

🌈 SEE ALSO 🌈

Kernel file ./net/xfrm/xfrm_iptfs.c, plus all these iconic little besties:

mwah πŸ’… β€” that’s the whole page, bestie! source/version: ./net/xfrm; date: October 2026; page: iptfs_prepare_output(9); manual: Kernel API Manual. 🫢✨

πŸ“¦ where this page comes from