Merge pull request #26 from Noltari/mcproxy-next
[feed/routing.git] / mrd6 / patches / 101-Accept-default-routes-without-RTA_DST.patch
1 From b70c7d519ddd178b76d89bca7d3fe1fd186af862 Mon Sep 17 00:00:00 2001
2 From: Oryon <pierre@darou.fr>
3 Date: Tue, 11 Mar 2014 12:12:07 +0100
4 Subject: [PATCH 1/2] Accept default routes without RTA_DST
5
6 ---
7 src/linux/linux_unicast_route.cpp | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/src/linux/linux_unicast_route.cpp b/src/linux/linux_unicast_route.cpp
11 index 331a7a0..7919cc2 100644
12 --- a/src/linux/linux_unicast_route.cpp
13 +++ b/src/linux/linux_unicast_route.cpp
14 @@ -334,7 +334,7 @@ void linux_unicast_router::handle_route_event(bool isnew, nlmsghdr *hdr) {
15 netlink_msg::parse_rtatable(tb, RTA_MAX, RTM_RTA(NLMSG_DATA(hdr)),
16 hdr->nlmsg_len - NLMSG_LENGTH(sizeof(rtmsg)));
17
18 - if (tb[RTA_DST]) {
19 + //if (tb[RTA_DST]) { /* Accept default routes */
20 lookup_result res;
21
22 parse_prefix_rec(tb, msg->r.rtm_dst_len,
23 @@ -360,7 +360,7 @@ void linux_unicast_router::handle_route_event(bool isnew, nlmsghdr *hdr) {
24 }
25
26 prefix_changed(isnew, res);
27 - }
28 + //}
29 }
30
31 void linux_unicast_router::handle_intf_event(bool isnew, nlmsghdr *hdr) {
32 --
33 1.9.0
34