summaryrefslogtreecommitdiffstats
path: root/src/tlv_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tlv_types.c')
-rw-r--r--src/tlv_types.c4
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) {