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
888 stars 336 forks source link

master socket and subsockets #306

Closed FiratA closed 5 years ago

FiratA commented 5 years ago

Hello Guys,

i have a question. How can i see, which sockets are available for MPTCP (subsockets). Is there a list?

When i use iperf, then i easly can find out the addresses through tp. But before a transmission, how can i find them out?

matttbe commented 5 years ago

Hi,

I am not sure the understand the question.

Are you talking about this list?

/proc/net/mptcp_net/mptcp
FiratA commented 5 years ago

Thank you for your fast reply, i found out that they can be found in mpcb master_sk and mpcb->connection_list. I have one more question, how can i assign them a IP address, because i know which ip address i am using on which interface, and i want to identify the socket based on the ip address?

matttbe commented 5 years ago

Thank you for your fast reply, i found out that they can be found in mpcb master_sk and mpcb->connection_list.

OK, I didn't get you were asking where to find that in the source code.

I have one more question, how can i assign them a IP address, because i know which ip address i am using on which interface, and i want to identify the socket based on the ip address?

Where do you want to do this assignment? From a userspace application using bind? Or from a new path manager using mptcp_init[46]_subsockets? Do not hesitate to share code because I guess you saw how big was the MPTCP implementation ;-)

FiratA commented 5 years ago

@matttbe thank you sir. i have chosen another approach :) but thank you for your help.