Merge pull request #9367 from mjstapp/fix_rt_netlink_af

zebra: ignore unknown address-family in netlink route msg
This commit is contained in:
Donald Sharp 2021-08-11 08:11:39 -04:00 committed by GitHub
commit c472a97080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -861,6 +861,12 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id,
}
memcpy(&src_p.prefix, src, 16);
src_p.prefixlen = rtm->rtm_src_len;
} else {
/* We only handle the AFs we handle... */
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug("%s: unknown address-family %u", __func__,
rtm->rtm_family);
return 0;
}
/*