summaryrefslogtreecommitdiff
path: root/proto/babel/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-06-13 15:22:29 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-06-13 15:22:29 +0200
commitcaa9d03d65ce827ce536d54b26988e70767e032f (patch)
tree1af9aa24a6087273ad965cb4e29011e5fdcf788e /proto/babel/packets.c
parent9c9050ff12c52762708dadda78a05108a5b533b2 (diff)
Babel: Fix handling of missing IPv4 next hops
In case of missing IPv4 next hop, we should skip such routes on transmit and ignore such routes on receive. Thanks to Julian Schuh for the bugreport and Toke Hoiland-Jorgensen for the original patch.
Diffstat (limited to 'proto/babel/packets.c')
-rw-r--r--proto/babel/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/babel/packets.c b/proto/babel/packets.c
index 59678678..d4ecf649 100644
--- a/proto/babel/packets.c
+++ b/proto/babel/packets.c
@@ -616,7 +616,7 @@ babel_read_update(struct babel_tlv *hdr, union babel_msg *m,
/* Update must have next hop, unless it is retraction */
if (ipa_zero(state->next_hop_ip4) && (msg->metric != BABEL_INFINITY))
- return PARSE_ERROR;
+ return PARSE_IGNORE;
/* Merge saved prefix and received prefix parts */
memcpy(buf, state->def_ip4_prefix, tlv->omitted);