Commit aaf414d4 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't redistribute RTPROT_BOOT.

parent d66f258c
......@@ -742,10 +742,11 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data)
if(nh->nlmsg_type != RTM_NEWROUTE)
return 0;
rtm = (struct rtmsg*)NLMSG_DATA(nh);
len -= NLMSG_LENGTH(0);
if(rtm->rtm_protocol == RTPROT_BABEL)
if(rtm->rtm_protocol == RTPROT_BOOT || rtm->rtm_protocol == RTPROT_BABEL)
return 0;
if(rtm->rtm_dst_len > maxplen || rtm->rtm_src_len != 0)
......
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