aboutsummaryrefslogtreecommitdiffstats
path: root/main/opennhrp/fix-shortcut-route-table.patch
blob: 106c3829dcb5db88fc498c5473bc12018d24391e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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) {