mptcp_token_new_connect(9)
π 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:
mptcp_token_new_request(9)mptcp_token_accept(9)mptcp_token_get_sock(9)mptcp_token_iter_next(9)mptcp_token_destroy_request(9)mptcp_token_destroy(9)
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
- 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