diff options
author | Luca Muscariello <lumuscar@cisco.com> | 2022-06-09 21:34:09 +0200 |
---|---|---|
committer | Luca Muscariello <muscariello@ieee.org> | 2022-06-30 10:47:50 +0200 |
commit | 6b94663b2455e212009a544ae23bb6a8c55407f8 (patch) | |
tree | 0af780ce5eeb1009fd24b8af8af08e8368eda3bd /hicn-light/src/hicn/core/connection.c | |
parent | a1ac96f497719b897793ac14b287cb8d840651c1 (diff) |
refactor(lib, hicn-light, vpp, hiperf): HICN-723
- move infra data structure into the shared lib
- new packet cache using double hashing and lookup on prefix suffix
- testing updates
- authenticated requests using interest manifests
Co-authored-by: Mauro Sardara <msardara@cisco.com>
Co-authored-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Co-authored-by: Michele Papalini <micpapal@cisco.com>
Co-authored-by: Olivier Roques <oroques+fdio@cisco.com>
Co-authored-by: Enrico Loparco <eloparco@cisco.com>
Change-Id: Iaddebfe6aa5279ea8553433b0f519578f6b9ccd9
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
Diffstat (limited to 'hicn-light/src/hicn/core/connection.c')
-rw-r--r-- | hicn-light/src/hicn/core/connection.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hicn-light/src/hicn/core/connection.c b/hicn-light/src/hicn/core/connection.c index c8cc1d0b9..2108d30af 100644 --- a/hicn-light/src/hicn/core/connection.c +++ b/hicn-light/src/hicn/core/connection.c @@ -28,8 +28,6 @@ #include "connection.h" #include "connection_vft.h" -#define _conn_var(x) _connection_##x - // This is called by configuration connection_t *connection_create(face_type_t type, const char *name, const address_pair_t *pair, @@ -212,18 +210,16 @@ int connection_send_packet(const connection_t *connection, connection, packet, size); } -bool _connection_send(const connection_t *connection, msgbuf_t *msgbuf, - bool queue) { +bool _connection_send(connection_t *connection, msgbuf_t *msgbuf, bool queue) { return connection_vft[get_protocol(connection->type)]->send(connection, msgbuf, queue); } -bool connection_flush(const connection_t *connection) { +bool connection_flush(connection_t *connection) { return connection_vft[get_protocol(connection->type)]->flush(connection); } -bool connection_send(const connection_t *connection, off_t msgbuf_id, - bool queue) { +bool connection_send(connection_t *connection, off_t msgbuf_id, bool queue) { assert(connection); assert(msgbuf_id_is_valid(msgbuf_id)); @@ -254,7 +250,7 @@ bool connection_send(const connection_t *connection, off_t msgbuf_id, * handled inside the MessageProcessor. This is specific to WLDR * retransmittions. This is done only for data packets */ -bool connection_resend(const connection_t *connection, msgbuf_t *msgbuf, +bool connection_resend(connection_t *connection, msgbuf_t *msgbuf, bool notification) { assert(connection); assert(msgbuf); |