mptcpd
Multipath TCP Daemon
|
MPTCP path management generic netlink command functions. More...
#include <path_manager.h>
Private Attributes | |
int(* | add_addr )(struct mptcpd_pm *pm, struct sockaddr const *addr, mptcpd_aid_t id, mptcpd_token_t token) |
Advertise new network address to peers. More... | |
int(* | remove_addr )(struct mptcpd_pm *pm, mptcpd_aid_t address_id, mptcpd_token_t token) |
Stop advertising network address to peers. More... | |
int(* | add_subflow )(struct mptcpd_pm *pm, mptcpd_token_t token, mptcpd_aid_t local_address_id, mptcpd_aid_t remote_address_id, struct sockaddr const *local_addr, struct sockaddr const *remote_addr, bool backup) |
Create a new subflow. More... | |
int(* | remove_subflow )(struct mptcpd_pm *pm, mptcpd_token_t token, struct sockaddr const *local_addr, struct sockaddr const *remote_addr) |
Remove a subflow. More... | |
int(* | set_backup )(struct mptcpd_pm *pm, mptcpd_token_t token, struct sockaddr const *local_addr, struct sockaddr const *remote_addr, bool backup) |
Set priority of a subflow. More... | |
MPTCP path management generic netlink command functions.
The set of functions that implement client-oriented MPTCP path management generic netlink command calls where path management is performed in the user space.
|
private |
Advertise new network address to peers.
[in] | pm | The mptcpd path manager object. |
[in] | addr | Local IP address and port to be advertised through the MPTCP protocol ADD_ADDR option. The port is optional, and is ignored if it is zero. |
[in] | id | MPTCP local address ID. |
[in] | token | MPTCP connection token. |
0
if operation was successful. -1 or errno
otherwise.
|
private |
Create a new subflow.
[in] | pm | The mptcpd path manager object. |
[in] | token | MPTCP connection token. |
[in] | local_address_id | MPTCP local address ID. |
[in] | remote_address_id | MPTCP remote address ID. |
[in] | local_addr | MPTCP subflow local address information, including the port. |
[in] | remote_addr | MPTCP subflow remote address information, including the port. |
[in] | backup | Whether or not to set the MPTCP subflow backup priority flag. |
0
if operation was successful. -1 or errno
otherwise.
|
private |
Stop advertising network address to peers.
[in] | pm | The mptcpd path manager object. |
[in] | address_id | MPTCP local address ID. |
[in] | token | MPTCP connection token. |
0
if operation was successful. -1 or errno
otherwise.
|
private |
Remove a subflow.
[in] | pm | The mptcpd path manager object. |
[in] | token | MPTCP connection token. |
[in] | local_addr | MPTCP subflow local address information, including the port. |
[in] | remote_addr | MPTCP subflow remote address information, including the port. |
0
if operation was successful. errno
otherwise.
|
private |
Set priority of a subflow.
[in] | pm | The mptcpd path manager object. |
[in] | token | MPTCP connection token. |
[in] | local_addr | MPTCP subflow local address information, including the port. |
[in] | remote_addr | MPTCP subflow remote address information, including the port. |
[in] | backup | Whether or not to set the MPTCP subflow backup priority flag. |
0
if operation was successful. errno
otherwise.