diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-24 03:45:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-24 03:45:16 +0100 |
commit | 47bd032564a4812a607cbe9f5a44ef2b2f93278d (patch) | |
tree | 3069f48157989175a51584897ed338c01b58d2bc /src/tlv_types.c | |
parent | 0af36311e10c0dd480bcfca5774db738e165066d (diff) | |
download | babel-47bd032564a4812a607cbe9f5a44ef2b2f93278d.tar babel-47bd032564a4812a607cbe9f5a44ef2b2f93278d.zip |
Initial nexthop maintenance implementation
Mostly taken from the FFD project, and quite incomplete.
Diffstat (limited to 'src/tlv_types.c')
-rw-r--r-- | src/tlv_types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tlv_types.c b/src/tlv_types.c index b860784..9b4c215 100644 --- a/src/tlv_types.c +++ b/src/tlv_types.c @@ -81,7 +81,7 @@ static void handle_tlv_hello(gmrf_t *gmrf, gmrf_context_t *ctx, const gp_babel_t if (abs((int16_t)(seqno - seqexp)) > 16) { gmrf_logf(gmrf, LOG_INFO, "neighbour was reset."); neigh->hello_log = 0; - neigh->txcost = 0xffff; + neigh->txcost = GP_BABEL_INFINITY; } else { int16_t seqdiff = seqno - neigh->last_seqno; @@ -212,7 +212,7 @@ static void handle_tlv_update(gmrf_t *gmrf, gmrf_context_t *ctx, const gp_babel_ gmrf_logf(gmrf, LOG_DEBUG, "the update was accepted."); - //gp_babel_announce_update_nexthop(announce, nexthop, ms, ntohs(tlv_update->interval)); + gp_babel_announce_update_nexthop(gmrf, announce, nexthop, ms, ntohs(tlv_update->interval)); } static void handle_tlv(gmrf_t *gmrf, gmrf_context_t *ctx, gp_babel_tlv_type_t type, const void *data, size_t len, void *arg) { |