summaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/io/udpListener.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/io/udpListener.c')
-rw-r--r--hicn-light/src/hicn/io/udpListener.c11
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;
}