Commit 68b6c5ec authored by Fabian Bläse's avatar Fabian Bläse Committed by Juliusz Chroboczek

kernel_netlink: Convert src_plen to v4mapped encoding on import

src_plen for IPv4 routes imported from kernel has not been adjusted
to v4mapped encoding. Therefore IPv4 xroutes used an inconsistent encoding
which lead to failed comparisons when sending updates.

Routes received from neighbors with the same prefix as xroutes therefore
have been announced to neighbours instead.

This issue is fixed by converting src_plen on import.
Signed-off-by: default avatarFabian Bläse <fabian@blaese.de>
parent 15a702a8
......@@ -1119,6 +1119,7 @@ parse_kernel_route_rta(struct rtmsg *rtm, int len, struct kernel_route *route)
v4tov6(route->prefix, zeroes);
v4tov6(route->src_prefix, zeroes);
route->plen = 96;
route->src_plen = 96;
}
route->proto = rtm->rtm_protocol;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment