public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Dominik Heidler <dominik@heidler.eu>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] Alfred update-command
Date: Sun, 4 Oct 2015 16:23:28 +0200	[thread overview]
Message-ID: <56113660.8080506@heidler.eu> (raw)

Hi,

I tried to use the alfred update-command but it seems that the
update-command is only triggered when data is purged but not when new
data is received.

The changed_data_type() method is only called from the purge_data() method.

169     while (NULL != (hashit = hash_iterate(globals->data_hash,
hashit))) {
170         struct dataset *dataset = hashit->bucket->data;
171
172         time_diff(&now, &dataset->last_seen, &diff);
173         if (diff.tv_sec < ALFRED_DATA_TIMEOUT)
174             continue;
175
176         changed_data_type(globals, dataset->data.header.type);

177
178         hash_remove_bucket(globals->data_hash, hashit);
179         free(dataset->buf);
180         free(dataset);
181     }


Is this the way the update-command should work or am I doing something
wrong?

Regards,
Dominik Heidler

             reply	other threads:[~2015-10-04 14:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04 14:23 Dominik Heidler [this message]
2015-10-04 16:17 ` [B.A.T.M.A.N.] Alfred update-command Sven Eckelmann
2015-10-04 16:22   ` Dominik Heidler
2015-10-04 16:27     ` Sven Eckelmann
2015-10-04 16:30       ` Dominik Heidler
2015-10-04 16:46         ` Sven Eckelmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56113660.8080506@heidler.eu \
    --to=dominik@heidler.eu \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox