mptcpd_addr_info
related functions.
More...
mptcpd_addr_info
related functions.
Copyright (c) 2021, Intel Corporation
◆ mptcpd_addr_info_get_addr()
struct sockaddr const * mptcpd_addr_info_get_addr |
( |
struct mptcpd_addr_info const * |
info | ) |
|
Get underlying network address related information.
- Parameters
-
[in] | info | Mptcpd address information. |
- Returns
sockaddr
object containing the underlying network address information. Cast to a const
pointer to a sockaddr_in
or sockaddr_in6
depending on the address family in the sa_family
field. NULL
is returned on error.
◆ mptcpd_addr_info_get_flags()
Get mptcpd flags associated with a network address.
- Parameters
-
[in] | info | Mptcpd address information. |
- Returns
- Mptcpd flags bitmask associated with the network address encapsulated by info. 0 is returned on error.
◆ mptcpd_addr_info_get_id()
Get MPTCP address ID.
- Parameters
-
[in] | info | Mptcpd address information. |
- Returns
- MPTCP address ID corresponding to network address encapsulated by info. 0 is returned on error.
- Todo:
- Good value to return on error?
◆ mptcpd_addr_info_get_index()
Get network interface index associated with an address.
- Parameters
-
[in] | info | Mptcpd address information. |
- Returns
- Network interface index associated with the network address encapsulated by info. -1 is returned on error.