tipc_crypto_xmit(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– tipc_crypto_xmit โ€” the kernel API glow-up ๐ŸŽ€

okay so bestie, welcome to tipc_crypto_xmit(9), from the Kernel API Manual. this is the function that builds and encrypts a TIPC message so it can go out into the world. it's giving "getting dressed before the party" energy, but for packets. ๐Ÿ’…


โœจ SYNOPSIS โœจ

int tipc_crypto_xmit (struct net *net , struct sk_buff **skb , struct
tipc_bearer *b , struct tipc_media_addr *dst , struct tipc_node *__dnode
);

that's the whole signature, no cap. ๐Ÿซถ


๐ŸŒธ ARGUMENTS ๐ŸŒธ

  • net โ€” a struct net. yes. that's the whole description. iconic minimalism honestly. ๐Ÿ‘‘
  • skb โ€” the input/output message skb pointer. it goes in, and (spoiler) it comes back out either encrypted or gone.
  • b โ€” the bearer used for xmit later. think of it as the ride this message is gonna catch. ๐Ÿš—
  • dst โ€” the destination media address. where it's headed. ๐Ÿ“
  • __dnode โ€” the destination node for reference, if any. so like, if any โ€” it's optional, she's flexible. ๐Ÿฆ‹

๐Ÿ’ซ DESCRIPTION ๐Ÿ’ซ

so here's the tea, bestie. first, it builds an encryption message header on the top of the message. then it encrypts the original TIPC message by using the pending, master or active key โ€” in that preference order, exactly, don't reorder them, that's the whole vibe check. ๐Ÿ”ฅ

if the encryption is successful, the encrypted skb is returned directly or via the callback (depending on how it went down, iykyk). otherwise โ€” and this is the dramatic part โ€” the skb is freed! ๐Ÿ’€ literally that's it, it's gone, she did not survive.

โš ๏ธ ngl this is the one to remember: fail case = skb freed. no refunds, no returns. ๐Ÿ˜ญ

โญ RETURN โญ

here's what the return value is serving, one by one:

  • 0 โ€” the encryption has succeeded (or no encryption happened at all). slay ๐ŸŽ‰
  • -EINPROGRESS/-EBUSY โ€” the encryption is ongoing, and a callback will be made. she's still getting ready, hang tight. โณ
  • -ENOKEK โ€” the encryption has failed due to no key. no key, no entry. ๐Ÿ”‘โŒ
  • -EKEYREVOKED โ€” the encryption has failed due to key revoked. that key lost its privileges bestie. ๐Ÿ’€
  • -ENOMEM โ€” the encryption has failed due to no memory. the budget said no. ๐Ÿ˜ญ
  • < 0 โ€” the encryption has failed due to other reasons. the catch-all, the mystery, the โœจetceteraโœจ.

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

the whole friend group, fr fr โ€” and they all live in the kernel file ./net/tipc/crypto.c:


and that's the whole page!! this one's filed under ./net/tipc, dated October 2026, and it's gonna show up in your searches as tipc_crypto_xmit(9) forever and ever. mwah ๐Ÿ’‹ go encrypt something gorgeous bestie ๐Ÿงš๐Ÿ’œ

๐Ÿ“ฆ where this page comes from