diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-04 13:58:09 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-04 13:58:09 +0200 |
commit | 7efd6c82cb359b5220134f5e65828a671f4e8b1c (patch) | |
tree | b3d9887166f6695683eedd045ed1557404d977b5 /src/send.c | |
parent | ef586cf976550dd7877180be0c3b3368db820031 (diff) | |
download | babel-7efd6c82cb359b5220134f5e65828a671f4e8b1c.tar babel-7efd6c82cb359b5220134f5e65828a671f4e8b1c.zip |
There is no reason to keep a hello seqno for each interface separately
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |