From 47bd032564a4812a607cbe9f5a44ef2b2f93278d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Mar 2013 03:45:16 +0100 Subject: Initial nexthop maintenance implementation Mostly taken from the FFD project, and quite incomplete. --- src/send.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/send.c') diff --git a/src/send.c b/src/send.c index f566fee..b35d009 100644 --- a/src/send.c +++ b/src/send.c @@ -163,14 +163,14 @@ void gp_babel_send_update(gmrf_t *gmrf, gmrf_context_t *ctx, gp_babel_iface_t *i gp_babel_packet_buf_t *buf = gp_babel_packet_alloca(GP_BABEL_PACKET_MAX); if (announce) { - add_update(buf, NULL, announce, with_data, iface || neigh); + add_update(buf, NULL, announce, with_data, neigh); } else { gp_babel_node_id_t node_id = gp_babel_node_id_unspec; gp_babel_announce_t *a; for (a = ctx->announces; a; a = a->next) { - if (!add_update(buf, &node_id, a, with_data, iface || neigh)) { + if (!add_update(buf, &node_id, a, with_data, neigh)) { if (neigh) send_neigh(gmrf, neigh, &buf->packet); else @@ -179,7 +179,7 @@ void gp_babel_send_update(gmrf_t *gmrf, gmrf_context_t *ctx, gp_babel_iface_t *i node_id = gp_babel_node_id_unspec; buf->packet.len = 0; - if (!add_update(buf, &node_id, a, with_data, iface || neigh)) { + if (!add_update(buf, &node_id, a, with_data, neigh)) { gmrf_logf(gmrf, LOG_ERR, "add_update failed"); return; } -- cgit v1.2.3