summaryrefslogtreecommitdiffstats
path: root/src/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c6
1 files changed, 3 insertions, 3 deletions
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;
}