summaryrefslogtreecommitdiffstats
path: root/src/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index e1c582f..f649a34 100644
--- a/src/send.c
+++ b/src/send.c
@@ -104,13 +104,15 @@ void gp_babel_send_hellos(gmrf_context_t *ctx) {
gmrf_iface_state_t *iface;
for (iface = ctx->interfaces; iface; iface = iface->next) {
- hello->seqno = htons(iface->seqno++);
+ hello->seqno = htons(ctx->hello_seqno);
buf->packet.len = len;
add_ihus(ctx, buf, iface);
send_iface(ctx, iface, &buf->packet);
}
+
+ ctx->hello_seqno++;
}
/*static inline bool add_node_id_tlv(gp_babel_packet_buf_t *buf, const gp_babel_node_id_t *node_id) {