diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-09-23 17:50:52 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-09-28 18:25:30 +0200 |
commit | 32dccec98e4c7d7e4ce902e19ba8d1b29b823758 (patch) | |
tree | 95c5dec2083a3774c13bd5f896743cd6c5c42a7a /hicn-light/src/hicn/core/mapme.h | |
parent | 7356408ca1554468c9d7b9840aaaee28b4341c8d (diff) |
[HICN-570] Message buffer (incl. CS and PIT changes)
Change-Id: I4c508e4b04dee3acbfc3da1d26e1770cb826f22b
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/mapme.h')
-rw-r--r-- | hicn-light/src/hicn/core/mapme.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/hicn-light/src/hicn/core/mapme.h b/hicn-light/src/hicn/core/mapme.h index 2bf5a413b..d1d21079f 100644 --- a/hicn-light/src/hicn/core/mapme.h +++ b/hicn-light/src/hicn/core/mapme.h @@ -27,9 +27,11 @@ #include <stdint.h> #include <hicn/hicn.h> -#include <hicn/core/connection.h> -#include <hicn/utils/commands.h> -#include <hicn/core/fib_entry.h> + +#include "connection.h" +#include "fib_entry.h" +#include "msgbuf.h" +#include "../utils/commands.h" typedef struct mapme_s mapme_t; @@ -64,7 +66,7 @@ bool mapme_match_packet(const uint8_t *msgBuffer); * @param [in] message - MAP-Me buffer * @param [in] conn_id - Ingress connection id */ -void mapme_process(mapme_t *mapme, uint8_t * packet, unsigned conn_id); +void mapme_process(mapme_t *mapme, msgbuf_t * msgbuf); int mapme_send_to_nexthop(const mapme_t * mapme, fib_entry_t * fib_entry, unsigned nexthop); @@ -117,10 +119,6 @@ void mapme_on_connection_event(const mapme_t *mapme, const connection_t * conn, nexthops_t * mapme_get_nexthops(const mapme_t *mapme, fib_entry_t *fib_entry, const msgbuf_t *interest); -hicn_mapme_type_t mapme_PktType_To_LibHicnPktType(MessagePacketType type); - -MessagePacketType mapme_LibHicnPktType_To_PktType(hicn_mapme_type_t type); - #endif /* WITH_MAPME */ #endif // mapme_h |