summaryrefslogtreecommitdiffstats
path: root/mmss/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'mmss/iface.c')
-rw-r--r--mmss/iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mmss/iface.c b/mmss/iface.c
index cecfed0..b175fa7 100644
--- a/mmss/iface.c
+++ b/mmss/iface.c
@@ -68,3 +68,9 @@ bool gmrf_iface_send_bc(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, siz
return true;
}
+
+void mmss_dispatch(mmss_packet_t *packet) {
+ packet->dest->node->proto->handle_packet(packet->dest->node, packet->dest->node->ctx, packet->dest,
+ &packet->source->address, packet->data, packet->len);
+ free(packet);
+}