multipath-tcp / mptcp

⚠️⚠️⚠️ Deprecated 🚫 Out-of-tree Linux Kernel implementation of MultiPath TCP. 👉 Use https://github.com/multipath-tcp/mptcp_net-next repo instead ⚠️⚠️⚠️
https://github.com/multipath-tcp/mptcp_net-next
Other
889 stars 335 forks source link

MPTCP Netlink API question. #437

Closed pak-ji closed 3 years ago

pak-ji commented 3 years ago


Q1) Is the token used here local_token or remotetoken? And Q2) Where can I get a token? ("/proc/net/mptcp_net/mptcp"_ => Is it okay to use tokens that exist in that path?)

VenkateswaranJ commented 3 years ago

Q1) Is the token used here local_token or remote_token? Local token Q2) Where can I get a token? ("/proc/net/mptcp_net/mptcp" => Is it okay to use tokens that exist in that path?) Yes (also you will get the token on mptcp create/established events)

pak-ji commented 3 years ago

@VenkateswaranJ Thank you so much :)

matttbe commented 3 years ago

Hi,

Typically, you get tokens by listening to events, e.g. MPTCP_EVENT_CREATED → a new MPTCP connection has been created, the token (and more) is provided.

Note that in /proc/net/mptcp_net/mptcp, the token is only readable by the root user.

pak-ji commented 3 years ago

@matttbe Thank you so much :)