mptcpd
Multipath TCP Daemon
Loading...
Searching...
No Matches
Functions
addr_info.h File Reference

mptcpd_addr_info related functions. More...

#include <mptcpd/export.h>
#include <mptcpd/types.h>
Include dependency graph for addr_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MPTCPD_API struct sockaddr const * mptcpd_addr_info_get_addr (struct mptcpd_addr_info const *info)
 Get underlying network address related information.
 
MPTCPD_API mptcpd_aid_t mptcpd_addr_info_get_id (struct mptcpd_addr_info const *info)
 Get MPTCP address ID.
 
MPTCPD_API mptcpd_flags_t mptcpd_addr_info_get_flags (struct mptcpd_addr_info const *info)
 Get mptcpd flags associated with a network address.
 
MPTCPD_API int mptcpd_addr_info_get_index (struct mptcpd_addr_info const *info)
 Get network interface index associated with an address.
 

Detailed Description

mptcpd_addr_info related functions.

Copyright (c) 2020-2021, Intel Corporation

Function Documentation

◆ mptcpd_addr_info_get_addr()

MPTCPD_API struct sockaddr const * mptcpd_addr_info_get_addr ( struct mptcpd_addr_info const *  info)

Get underlying network address related information.

Parameters
[in]infoMptcpd 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()

MPTCPD_API mptcpd_flags_t mptcpd_addr_info_get_flags ( struct mptcpd_addr_info const *  info)

Get mptcpd flags associated with a network address.

Parameters
[in]infoMptcpd address information.
Returns
Mptcpd flags bitmask associated with the network address encapsulated by info. 0 is returned on error.

◆ mptcpd_addr_info_get_id()

MPTCPD_API mptcpd_aid_t mptcpd_addr_info_get_id ( struct mptcpd_addr_info const *  info)

Get MPTCP address ID.

Parameters
[in]infoMptcpd 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()

MPTCPD_API int mptcpd_addr_info_get_index ( struct mptcpd_addr_info const *  info)

Get network interface index associated with an address.

Parameters
[in]infoMptcpd address information.
Returns
Network interface index associated with the network address encapsulated by info. -1 is returned on error.