addr_info.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef MPTCPD_ADDR_INFO_H
#define MPTCPD_ADDR_INFO_H
#include <mptcpd/export.h>
#include <mptcpd/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct sockaddr;
struct mptcpd_addr_info;
MPTCPD_API struct sockaddr const *
mptcpd_addr_info_get_addr(struct mptcpd_addr_info const *info);
MPTCPD_API mptcpd_aid_t
mptcpd_addr_info_get_id(struct mptcpd_addr_info const *info);
MPTCPD_API mptcpd_flags_t
mptcpd_addr_info_get_flags(struct mptcpd_addr_info const *info);
MPTCPD_API int
mptcpd_addr_info_get_index(struct mptcpd_addr_info const *info);
#ifdef __cplusplus
}
#endif
#endif /* MPTCPD_ADDR_INFO_H */
/*
Local Variables:
c-file-style: "linux"
End:
*/
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.
Definition: addr_info.c:40
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.
Definition: addr_info.c:23
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.
Definition: addr_info.c:15
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.
Definition: addr_info.c:32
export.h
mptcpd shared library symbol export/import macros.
mptcpd_addr_info
Information associated with a network address.
Definition: addr_info.h:32
types.h
mptcpd user space path manager attribute types.
mptcpd_flags_t
uint32_t mptcpd_flags_t
MPTCP flags type.
Definition: types.h:51
mptcpd_aid_t
uint8_t mptcpd_aid_t
MPTCP address ID type.
Definition: types.h:29