summaryrefslogtreecommitdiffstats
path: root/src/tlv_types.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-03 03:08:04 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-03 03:08:04 +0200
commit48f77c26dcb4a9e8d09e718f1b16e6b97c04d9b9 (patch)
tree97c5c77b15b82e5ba68f0b60abb04151ca78821a /src/tlv_types.c
parent8ca5dead7f2870ae7a3ea40f40bec5cb9acde2d0 (diff)
downloadbabel-48f77c26dcb4a9e8d09e718f1b16e6b97c04d9b9.tar
babel-48f77c26dcb4a9e8d09e718f1b16e6b97c04d9b9.zip
Add gp_babel_since helper
Diffstat (limited to 'src/tlv_types.c')
-rw-r--r--src/tlv_types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tlv_types.c b/src/tlv_types.c
index ddf819f..12b7248 100644
--- a/src/tlv_types.c
+++ b/src/tlv_types.c
@@ -77,7 +77,7 @@ static void handle_tlv_hello(gmrf_context_t *ctx, const gp_babel_tlv_hello_t *tl
uint16_t seqno = ntohs(tlv->seqno);
if (neigh->last_hello != gmrf_time_unspec) {
- int timediff = (gmrf_now(ctx->gmrf) - neigh->last_hello)/10;
+ int timediff = gp_babel_since(ctx, neigh->last_hello);
uint16_t seqexp = neigh->last_seqno + (timediff - neigh->hello_interval/2)/neigh->hello_interval;
/* cast to int16_t to ensure correct handling of seqno wrapping */