Filter: Update 'gw' to handle IPv6 link-local addresses
When a link-local address is set, use the existing iface for scope. Thanks to Marcel Krüger for the bugreport.
This commit is contained in:
parent
0d1a11cca3
commit
94abefc00b
1 changed files with 2 additions and 1 deletions
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue