ENUM MPTCP_EVENT_TYPE(9)
๐ enum mptcp_event_type(9) โ Kernel API Manual โจ
okay bestie, so this one's from the Kernel API Manual, and it's literally the master list of Netlink MPTCP event types. Netlink's out here sending vibes, and this enum is the group chat where every event announces itself. let's go ๐ซถ
โจ NAME โจ
enum mptcp_event_type โ the Netlink MPTCP event types. that's it, that's the whole name. iconic.
๐ธ SYNOPSIS ๐ธ
here's the whole cast, no cuts, no skips:
enum mptcp_event_type {
MPTCP_EVENT_UNSPEC ,
MPTCP_EVENT_CREATED ,
MPTCP_EVENT_ESTABLISHED ,
MPTCP_EVENT_CLOSED ,
MPTCP_EVENT_ANNOUNCED ,
MPTCP_EVENT_REMOVED ,
MPTCP_EVENT_SUB_ESTABLISHED ,
MPTCP_EVENT_SUB_CLOSED ,
MPTCP_EVENT_SUB_PRIORITY ,
MPTCP_EVENT_LISTENER_CREATED ,
MPTCP_EVENT_LISTENER_CLOSED
};
๐งฎ Constants ๐งฎ
okay so now the lore for each one. no cap, these are all the members and their exact attributes ๐
MPTCP_EVENT_UNSPECโ literally unused. a filler event. it's giving placeholder energy, lowkey just vibing in the enum doing nothing ๐MPTCP_EVENT_CREATEDโ a new MPTCP connection has been created!! this is the moment, bestie โ it's the good time to allocate memory and sendADD_ADDRif needed. depending on the traffic-patterns it can take a long time until theMPTCP_EVENT_ESTABLISHEDis sent, so don't be out here expecting it immediately, fr fr. Attributes:token,family,saddr4 | saddr6,daddr4 | daddr6,sport,dport,[server-side],[flags]. ๐MPTCP_EVENT_ESTABLISHEDโ a MPTCP connection is established (which means it can start new subflows ๐ฆ). Attributes:token,family,saddr4 | saddr6,daddr4 | daddr6,sport,dport,[server-side],[flags].MPTCP_EVENT_CLOSEDโ a MPTCP connection has stopped. and it only brings one attribute to the party:token. minimal queen ๐ญMPTCP_EVENT_ANNOUNCEDโ a new address has been announced by the peer. Attributes:token,rem_id,family,daddr4 | daddr6[,dport].MPTCP_EVENT_REMOVEDโ an address has been lost by the peer. sad girl hours. Attributes:token,rem_id.MPTCP_EVENT_SUB_ESTABLISHEDโ a new subflow has been established (slay!), and'error'should not be set. Attributes:token,family,loc_id,rem_id,saddr4 | saddr6,daddr4 | daddr6,sport,dport,backup,if-idx[,error].MPTCP_EVENT_SUB_CLOSEDโ a subflow has been closed. an error (copy ofsk_err) could be set if an error has been detected for this subflow ๐. Attributes:token,family,loc_id,rem_id,saddr4 | saddr6,daddr4 | daddr6,sport,dport,backup,if-idx[,error].MPTCP_EVENT_SUB_PRIORITYโ the priority of a subflow has changed. and like its sibling above,'error'should not be set. Attributes:token,family,loc_id,rem_id,saddr4 | saddr6,daddr4 | daddr6,sport,dport,backup,if-idx[,error].MPTCP_EVENT_LISTENER_CREATEDโ a new PM listener is created ๐. Attributes:family,sport,saddr4 | saddr6. (notice there's notokenhere, bestie โ that's the whole point of a listener, it's out here before any connection exists ๐ )MPTCP_EVENT_LISTENER_CLOSEDโ a PM listener is closed. Attributes:family,sport,saddr4 | saddr6. same trio, different mood ๐
lowkey important:MPTCP_EVENT_SUB_ESTABLISHEDandMPTCP_EVENT_SUB_PRIORITYboth say'error'should not be set โ like, that's the spec, don't be messy about it ๐
๐ฎ SEE ALSO ๐ฎ
- Kernel file
./include/uapi/linux/mptcp_pm.hโ go read it, iykyk ๐
aaaand that's a wrap, bestie ๐ this page lives in ./include/uapi/linux, dated October 2026, and it's the enum mptcp_event_type(9) entry ๐ mwah, go build something with subflows โจ๐ฆ
๐ฆ 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