diff options
Diffstat (limited to 'src/babel.c')
-rw-r--r-- | src/babel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/babel.c b/src/babel.c index 4002df2..9242d30 100644 --- a/src/babel.c +++ b/src/babel.c @@ -32,8 +32,6 @@ #include <stdlib.h> -#include <arpa/inet.h> - const char *gmrf_protocol_name = "babel"; const char *gmrf_protocol_version = "experimental"; @@ -82,7 +80,7 @@ static void send_hellos(gmrf_t *gmrf, gmrf_context_t *ctx, void *arg) { add_ihus(gmrf, packet, GP_BABEL_PACKET_MAX, iface); - gmrf_iface_send_bc(gmrf, iface->gmrf_iface, packet, sizeof(gp_babel_packet_t)+ntohs(packet->len)); + gmrf_iface_send_bc(gmrf, iface->gmrf_iface, packet, gp_babel_packet_size(packet)); } } |