diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-04-16 14:39:50 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-04-16 15:37:53 +0200 |
commit | 3ed2badca49b8c7e636d8f8c40f532a7d3a7ba29 (patch) | |
tree | f865fe39515b3a496bfeee7ad8ef73916104caf4 /hicn-light/src/hicn/io/udpListener.c | |
parent | c365689250216861fd7727203ee6ba1049ad5778 (diff) |
[HICN-177] Provide helpers to send, receive and process control messages
Change-Id: I5f7270568eaf24858346edebc638cf51e28cc5ad
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/io/udpListener.c')
-rw-r--r-- | hicn-light/src/hicn/io/udpListener.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/io/udpListener.c b/hicn-light/src/hicn/io/udpListener.c index e73896372..9b7cf60af 100644 --- a/hicn-light/src/hicn/io/udpListener.c +++ b/hicn-light/src/hicn/io/udpListener.c @@ -451,13 +451,18 @@ static Message *_readMessage(UdpListener *udp, int fd, } else if (messageHandler_IsLoadBalancerProbe(packet)) { *processed = true; _handleProbeMessage(udp, packet); - } #ifdef WITH_MAPME - else if (mapMe_isMapMe(packet)) { + } else if (mapMe_isMapMe(packet)) { *processed = true; forwarder_ProcessMapMe(udp->forwarder, packet, connid); - } #endif /* WITH_MAPME */ + } + + /* Generic hook handler */ + if (messageHandler_handleHooks(udp->forwarder, CONNECTION_ID_UNDEFINED, + udp->localAddress, packet)) + goto END; +END: return message; } |