mptcpd
Multipath TCP Daemon
|
Map of MPTCP local address to listener. More...
Go to the source code of this file.
Functions | |
MPTCPD_API int | mptcpd_lm_listen (struct mptcpd_lm *lm, struct sockaddr *sa) |
Listen on the given MPTCP local address. | |
MPTCPD_API int | mptcpd_lm_close (struct mptcpd_lm *lm, struct sockaddr const *sa) |
Stop listening on a MPTCP local address. | |
Map of MPTCP local address to listener.
Copyright (c) 2022, Intel Corporation
MPTCPD_API int mptcpd_lm_close | ( | struct mptcpd_lm * | lm, |
struct sockaddr const * | sa | ||
) |
Stop listening on a MPTCP local address.
[in] | lm | The mptcpd address listener manager object. |
[in] | sa | The MPTCP local address with a non-zero port, such as the one assigned by mptcpd_lm_listen() , i.e. the non-zero port provided by the user or the ephemeral port chosen by the kernel. |
0
if operation was successful. -1 or errno
otherwise. MPTCPD_API int mptcpd_lm_listen | ( | struct mptcpd_lm * | lm, |
struct sockaddr * | sa | ||
) |
Listen on the given MPTCP local address.
Create a MPTCP listening socket for the given local address. This is needed to accept subflows, e.g. during a MP_JOIN
operation.
[in] | lm | The mptcpd address listener manager object. |
[in,out] | sa | The MPTCP local address. If the port is zero an ephemeral port will be chosen, and assigned to the appropriate underlying address family-specific port member, e.g. sin_port or sin6_port . The port will be in network byte order. |
0
if operation was successful. -1 or errno
otherwise.