mptcpd
Multipath TCP Daemon
id_manager.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef MPTCPD_ID_MANAGER_H
11 #define MPTCPD_ID_MANAGER_H
12 
13 #include <mptcpd/export.h>
14 #include <mptcpd/types.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 struct mptcpd_idm;
21 struct sockaddr;
22 
29 MPTCPD_API struct mptcpd_idm *mptcpd_idm_create(void);
30 
36 MPTCPD_API void mptcpd_idm_destroy(struct mptcpd_idm *idm);
37 
49 MPTCPD_API mptcpd_aid_t mptcpd_idm_get_id(struct mptcpd_idm *idm,
50  struct sockaddr const *sa);
51 
64 MPTCPD_API mptcpd_aid_t mptcpd_idm_remove_id(struct mptcpd_idm *idm,
65  struct sockaddr const *sa);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif // MPTCPD_ID_MANAGER_H
72 
73 
74 /*
75  Local Variables:
76  c-file-style: "linux"
77  End:
78 */
mptcpd shared library symbol export/import macros.
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:239
MPTCPD_API void mptcpd_idm_destroy(struct mptcpd_idm *idm)
Destroy MPTCP address ID manager.
Definition: id_manager.c:170
MPTCPD_API struct mptcpd_idm * mptcpd_idm_create(void)
Create MPTCP address ID manager.
Definition: id_manager.c:146
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:211
Internal mptcpd address ID manager data.
Definition: id_manager.c:53
mptcpd user space path manager attribute types.
uint8_t mptcpd_aid_t
MPTCP address ID type.
Definition: types.h:29