id_manager.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef MPTCPD_ID_MANAGER_H
#define MPTCPD_ID_MANAGER_H
#include <mptcpd/export.h>
#include <mptcpd/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct mptcpd_idm;
struct sockaddr;
MPTCPD_API struct mptcpd_idm *mptcpd_idm_create(void);
MPTCPD_API void mptcpd_idm_destroy(struct mptcpd_idm *idm);
MPTCPD_API mptcpd_aid_t mptcpd_idm_get_id(struct mptcpd_idm *idm,
struct sockaddr const *sa);
MPTCPD_API mptcpd_aid_t mptcpd_idm_remove_id(struct mptcpd_idm *idm,
struct sockaddr const *sa);
#ifdef __cplusplus
}
#endif
#endif // MPTCPD_ID_MANAGER_H
/*
Local Variables:
c-file-style: "linux"
End:
*/
export.h
mptcpd shared library symbol export/import macros.
mptcpd_idm_remove_id
MPTCPD_API mptcpd_aid_t mptcpd_idm_remove_id(struct mptcpd_idm *idm, struct sockaddr const *sa)
Remove MPTCP address ID.
Definition: id_manager.c:267
mptcpd_idm_destroy
MPTCPD_API void mptcpd_idm_destroy(struct mptcpd_idm *idm)
Destroy MPTCP address ID manager.
Definition: id_manager.c:206
mptcpd_idm_create
MPTCPD_API struct mptcpd_idm * mptcpd_idm_create(void)
Create MPTCP address ID manager.
Definition: id_manager.c:183
mptcpd_idm_get_id
MPTCPD_API mptcpd_aid_t mptcpd_idm_get_id(struct mptcpd_idm *idm, struct sockaddr const *sa)
Get MPTCP address ID.
Definition: id_manager.c:243
mptcpd_idm
Internal mptcpd address ID manager data.
Definition: id_manager.c:42
types.h
mptcpd user space path manager attribute types.
mptcpd_aid_t
uint8_t mptcpd_aid_t
MPTCP address ID type.
Definition: types.h:29