Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef MPTCPD_TYPES_H
#define MPTCPD_TYPES_H
#include <stddef.h>
#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef uint32_t mptcpd_token_t;
typedef uint8_t mptcpd_aid_t;
#define MPTCPD_PRIxAID PRIx8
typedef uint32_t mptcpd_flags_t;
#define MPTCPD_ADDR_FLAG_SIGNAL (1U << 0)
#define MPTCPD_ADDR_FLAG_SUBFLOW (1U << 1)
#define MPTCPD_ADDR_FLAG_BACKUP (1U << 2)
#define MPTCPD_ADDR_FLAG_FULLMESH (1U << 3)
enum mptcpd_limit_types
{
MPTCPD_LIMIT_RCV_ADD_ADDRS,
MPTCPD_LIMIT_SUBFLOWS
};
struct mptcpd_addr_info;
struct mptcpd_limit
{
uint16_t type;
uint32_t limit;
};
typedef void (*mptcpd_kpm_get_addr_cb_t)(
struct mptcpd_addr_info const *info,
void *callback_data);
typedef void (*mptcpd_complete_func_t)(void *user_data);
typedef void (*mptcpd_pm_get_limits_cb)(
struct mptcpd_limit const *limits,
size_t len,
void *callback_data);
#ifdef __cplusplus
}
#endif
#endif /* MPTCPD_TYPES_H */
/*
Local Variables:
c-file-style: "linux"
End:
*/
mptcpd_addr_info
Information associated with a network address.
Definition addr_info.h:32
mptcpd_limit
MPTCP resource type/limit pair.
Definition types.h:100
mptcpd_limit::limit
uint32_t limit
MPTCP resource limit value.
Definition types.h:105
mptcpd_limit::type
uint16_t type
MPTCP resource type, e.g. MPTCPD_LIMIT_SUBFLOWS.
Definition types.h:102
mptcpd_kpm_get_addr_cb_t
void(* mptcpd_kpm_get_addr_cb_t)(struct mptcpd_addr_info const *info, void *callback_data)
Type of function called when an address is available.
Definition types.h:121
mptcpd_flags_t
uint32_t mptcpd_flags_t
MPTCP flags type.
Definition types.h:51
mptcpd_pm_get_limits_cb
void(* mptcpd_pm_get_limits_cb)(struct mptcpd_limit const *limits, size_t len, void *callback_data)
Type of function called when MPTCP resource limits are available.
Definition types.h:163
mptcpd_token_t
uint32_t mptcpd_token_t
MPTCP connection token type.
Definition types.h:26
mptcpd_complete_func_t
void(* mptcpd_complete_func_t)(void *user_data)
Type of function called on asynchronous call completion.
Definition types.h:147
mptcpd_limit_types
mptcpd_limit_types
MPTCP resource limit type identifiers.
Definition types.h:84
MPTCPD_LIMIT_RCV_ADD_ADDRS
@ MPTCPD_LIMIT_RCV_ADD_ADDRS
Maximum number of address advertisements to receive.
Definition types.h:86
MPTCPD_LIMIT_SUBFLOWS
@ MPTCPD_LIMIT_SUBFLOWS
Maximum number of subflows.
Definition types.h:89
mptcpd_aid_t
uint8_t mptcpd_aid_t
MPTCP address ID type.
Definition types.h:29