aboutsummaryrefslogtreecommitdiffstats
path: root/main/opennhrp/fix-shortcut-route-table.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-04-19 12:32:59 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-04-19 12:33:53 +0300
commit1267385a781361be65d8af662f215fbc43b9476b (patch)
treeae4fe5eff88a5cb43e76a42cd48bad0cdeb524ef /main/opennhrp/fix-shortcut-route-table.patch
parent14cbf73416b6e1d6839c573967901260e464deb2 (diff)
downloadaports-1267385a781361be65d8af662f215fbc43b9476b.tar.bz2
aports-1267385a781361be65d8af662f215fbc43b9476b.tar.xz
main/opennhrp: fix routing-table check with shortcut destination interfaces
Diffstat (limited to 'main/opennhrp/fix-shortcut-route-table.patch')
-rw-r--r--main/opennhrp/fix-shortcut-route-table.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/opennhrp/fix-shortcut-route-table.patch b/main/opennhrp/fix-shortcut-route-table.patch
new file mode 100644
index 0000000000..106c3829dc
--- /dev/null
+++ b/main/opennhrp/fix-shortcut-route-table.patch
@@ -0,0 +1,13 @@
+diff --git a/nhrp/sysdep_netlink.c b/nhrp/sysdep_netlink.c
+index 1217ae4..44063ad 100644
+--- a/nhrp/sysdep_netlink.c
++++ b/nhrp/sysdep_netlink.c
+@@ -739,7 +739,7 @@ static void netlink_route_new(struct nlmsghdr *msg)
+
+ if (iface->flags & NHRP_INTERFACE_FLAG_SHORTCUT_DEST) {
+ /* Local shortcut target routes */
+- if (rtm->rtm_table != RT_TABLE_MAIN)
++ if (rtm->rtm_table != iface->route_table)
+ return;
+ type = NHRP_PEER_TYPE_LOCAL_ADDR;
+ } else if (iface->flags & NHRP_INTERFACE_FLAG_CONFIGURED) {