mptcp_token_new_connect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mptcp_token_new_connect β€” kernel API realness ✨

okay so bestie, this one lives in the Kernel API Manual and it's literally the function that kicks off a brand-new outgoing MPTCP connection 🫢


🌸 NAME 🌸

mptcp_token_new_connect β€” create new key/idsn/token for subflow πŸ’–


✨ SYNOPSIS ✨

int mptcp_token_new_connect (struct sock *ssk );

πŸŽ€ ARGUMENTS πŸŽ€

  • ssk β€” the socket that will initiate a connection πŸ‘‘ that's the main character right there

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function gets called when a new outgoing mptcp connection is initiated πŸ’« like, the moment a fresh connection is trying to leave the house, this is the vibe check it goes through.

It creates a unique token to identify the new mptcp connection, a secret local key and the initial data sequence number (idsn) πŸ”₯ three little besties, one function.

On success, the mptcp connection can be found again using the computed token at a later time, this is needed to process join requests 🌈 no cap, that token is the whole point β€” it's how the connection gets recognized later when join requests come knocking.


⭐ RETURN ⭐

0 on success πŸ’… that's it, that's the whole return situation.


🌟 SEE ALSO 🌟

Kernel file ./net/mptcp/token.c β€” plus the whole friend group:


ngl bestie, if you're messing with tokens, read the friends too β€” they're all in the same file and they all ate πŸ’€βœ¨

that's the whole page, mwah πŸ’‹ it lives in ./net/mptcp, dated October 2026, straight from the Kernel API Manual β€” go off and make some iconic connections πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from