b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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 | --- a/src/linux/linux_unicast_route.cpp |
| 11 | +++ b/src/linux/linux_unicast_route.cpp |
| 12 | @@ -335,7 +335,7 @@ void linux_unicast_router::handle_route_ |
| 13 | netlink_msg::parse_rtatable(tb, RTA_MAX, RTM_RTA(NLMSG_DATA(hdr)), |
| 14 | hdr->nlmsg_len - NLMSG_LENGTH(sizeof(rtmsg))); |
| 15 | |
| 16 | - if (tb[RTA_DST]) { |
| 17 | + //if (tb[RTA_DST]) { /* Accept default routes */ |
| 18 | lookup_result res; |
| 19 | |
| 20 | parse_prefix_rec(tb, msg->r.rtm_dst_len, |
| 21 | @@ -361,7 +361,7 @@ void linux_unicast_router::handle_route_ |
| 22 | } |
| 23 | |
| 24 | prefix_changed(isnew, res); |
| 25 | - } |
| 26 | + //} |
| 27 | } |
| 28 | |
| 29 | void linux_unicast_router::handle_intf_event(bool isnew, nlmsghdr *hdr) { |