|
mptcpd
Multipath TCP Daemon
|
Map of network address to MPTCP address ID. More...
#include <assert.h>#include <stdint.h>#include <string.h>#include <sys/socket.h>#include <netinet/in.h>#include <ell/ell.h>#include <mptcpd/private/murmur_hash.h>#include <mptcpd/private/id_manager.h>#include <mptcpd/id_manager.h>#include "hash_sockaddr.h"
Classes | |
| struct | mptcpd_idm |
| Internal mptcpd address ID manager data. More... | |
Functions | |
| struct mptcpd_idm * | mptcpd_idm_create (void) |
| Create MPTCP address ID manager. | |
| void | mptcpd_idm_destroy (struct mptcpd_idm *idm) |
| Destroy MPTCP address ID manager. | |
| bool | mptcpd_idm_map_id (struct mptcpd_idm *idm, struct sockaddr const *sa, mptcpd_aid_t id) |
| Map an IP address to a MPTCP address ID. | |
| mptcpd_aid_t | mptcpd_idm_get_id (struct mptcpd_idm *idm, struct sockaddr const *sa) |
| Get MPTCP address ID. | |
| mptcpd_aid_t | mptcpd_idm_remove_id (struct mptcpd_idm *idm, struct sockaddr const *sa) |
| Remove MPTCP address ID. | |
Map of network address to MPTCP address ID.
Copyright (c) 2020-2022, Intel Corporation
| struct mptcpd_idm * mptcpd_idm_create | ( | void | ) |
Create MPTCP address ID manager.
NULL on failure. | void mptcpd_idm_destroy | ( | struct mptcpd_idm * | idm | ) |
Destroy MPTCP address ID manager.
| [in,out] | idm | The mptcpd address ID manager object. |
| mptcpd_aid_t mptcpd_idm_get_id | ( | struct mptcpd_idm * | idm, |
| struct sockaddr const * | sa | ||
| ) |
Get MPTCP address ID.
Map an IP address to a MPTCP address ID, and return that ID.
| [in] | idm | The mptcpd address ID manager object. |
| [in] | sa | IP address information. |
| bool mptcpd_idm_map_id | ( | struct mptcpd_idm * | idm, |
| struct sockaddr const * | sa, | ||
| mptcpd_aid_t | id | ||
| ) |
Map an IP address to a MPTCP address ID.
Map an IP address to a MPTCP address ID. The MPTCP addresses ID for an existing IP address will be updated with the new ID.
| [in] | idm | The mptcpd address ID manager object. |
| [in] | sa | IP address information. |
| [in] | id | MPTCP address ID. |
true if mapping succeeded, and false otherwise. | mptcpd_aid_t mptcpd_idm_remove_id | ( | struct mptcpd_idm * | idm, |
| struct sockaddr const * | sa | ||
| ) |
Remove MPTCP address ID.
Stop associating the MPTCP address ID with the given IP address.
| [in] | idm | The mptcpd address ID manager object. |
| [in] | sa | IP address information. |