diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-09-23 17:50:52 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2021-03-19 14:15:14 +0100 |
commit | a070b0de9f9e9cbca150eea4eda74757ca588bed (patch) | |
tree | 9f2a11fa1afcd51b0b14f4b26bebf4deb8289a2f /hicn-light/src/hicn/core/pit.h | |
parent | 32dccec98e4c7d7e4ce902e19ba8d1b29b823758 (diff) |
[HICN-645] Control plane (WIP)
Change-Id: I4be6a40b690b62f22f57de6d8c10b01a1be42a6d
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/pit.h')
-rw-r--r-- | hicn-light/src/hicn/core/pit.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/hicn-light/src/hicn/core/pit.h b/hicn-light/src/hicn/core/pit.h index 5607827fe..85958f88e 100644 --- a/hicn-light/src/hicn/core/pit.h +++ b/hicn-light/src/hicn/core/pit.h @@ -69,7 +69,6 @@ typedef enum { KHASH_INIT(pit_name, const Name *, unsigned, 0, name_hash, name_hash_eq); typedef struct { - msgbuf_pool_t * msgbuf_pool; size_t max_size; pit_entry_t * entries; // pool kh_pit_name_t * index_by_name; @@ -77,17 +76,17 @@ typedef struct { /** * @brief Allocate a new PIT data structure (extended parameters) - * + * * @param init_size Initial size (0 = default) * @param max_size Maximum size (0 = unbounded) - * + * * @return pit_t* Newly allocated PIT data structure */ pit_t * _pit_create(size_t init_size, size_t max_size); /** * @brief Allocate a new PIT data structure - * + * * @return pit_t* Newly allocated PIT data structure */ #define pit_create() _pit_create(0, 0) @@ -108,14 +107,12 @@ do { #define pit_at(pit, i) (pit->entries + i) -pit_verdict_t pit_on_interest(pit_t * pit, off_t msgbuf_id); +pit_verdict_t pit_on_interest(pit_t * pit, msgbuf_pool_t * msgbuf_pool, off_t msgbuf_id); -nexthops_t * pit_on_data(pit_t * pit, off_t msgbuf_id); +nexthops_t * pit_on_data(pit_t * pit, msgbuf_pool_t * msgbuf_pool, off_t msgbuf_id); -void pit_remove(pit_t * pit, off_t msgbuf_id); +void pit_remove(pit_t * pit, msgbuf_pool_t * msgbuf_pool, off_t msgbuf_id); pit_entry_t * pit_lookup(const pit_t * pit, const msgbuf_t * msgbuf); -#define pit_get_msgbuf_pool(pit) (pit->msgbuf_pool) - #endif /* HICNLIGHT_PIT_H */ |