diff options
author | michele papalini <micpapal@cisco.com> | 2019-09-04 17:53:17 +0200 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2019-09-04 17:53:17 +0200 |
commit | 822bd391506fd3f0afdc96ea441710fd0787c98b (patch) | |
tree | 7f02c43d41bea2652febd8f9b831cdc28688f76d /hicn-light/src/hicn/core/mapMe.c | |
parent | 67f3d2e2879445c14c23dd8c74285b4c92f77aeb (diff) |
[HICN-272] new hicn-light fib
Change-Id: Id0f13d6aebecc724556a80d3b3d57e8e06b6b262
Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/mapMe.c')
-rw-r--r-- | hicn-light/src/hicn/core/mapMe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/core/mapMe.c b/hicn-light/src/hicn/core/mapMe.c index 865841f67..0f86dfd7e 100644 --- a/hicn-light/src/hicn/core/mapMe.c +++ b/hicn-light/src/hicn/core/mapMe.c @@ -583,7 +583,7 @@ static bool mapMe_onSpecialInterest(const MapMe *mapme, #else fibEntry = fibEntry_Create(name, fwdStrategy); #endif /* WITH_POLICY */ - FibEntry *lpm = fib_LPM(fib, name); + FibEntry *lpm = fib_MatchName(fib, name); mapMe_CreateTFIB(fibEntry); fib_Add(fib, fibEntry); if (!lpm) { @@ -755,7 +755,7 @@ void mapMe_onSpecialInterestAck(const MapMe *mapme, const uint8_t *msgBuffer, const Name * name = name_CreateFromPacket(msgBuffer, MessagePacketType_ContentObject); - name_setLen(name, prefix->len); + name_setLen((Name*) name, prefix->len); char * name_str = name_ToString(name); INFO(mapme, "[MAP-Me] Received ack for name prefix=%s seq=%d on conn id=%d", name_str, params->seq, conn_in_id); |