summaryrefslogtreecommitdiff
path: root/filter/f-inst.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/f-inst.c')
-rw-r--r--filter/f-inst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c
index 5cae31ba..1378fe4a 100644
--- a/filter/f-inst.c
+++ b/filter/f-inst.c
@@ -559,7 +559,8 @@
case SA_GW:
{
ip_addr ip = v1.val.ip;
- neighbor *n = neigh_find(rta->src->proto, ip, NULL, 0);
+ struct iface *ifa = ipa_is_link_local(ip) ? rta->nh.iface : NULL;
+ neighbor *n = neigh_find(rta->src->proto, ip, ifa, 0);
if (!n || (n->scope == SCOPE_HOST))
runtime( "Invalid gw address" );