From 3f6525c1ab0fd3f704ab8e23f935c475c3cbd16c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 6 Nov 2014 08:30:50 -0200 Subject: [PATCH] Make sure srcip has scope when it's link-local. Should fix #3969 --- etc/inc/gwlb.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index e32bea059..35fde30db 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -214,7 +214,11 @@ EOD; $gwifip = find_interface_ipv6($gateway['interface'], true); } } - + + /* Make sure srcip has scope defined when it's ll */ + if (is_linklocal($gwifip) && !strstr($gwifip, '%')) + $gwifip .= '%' . $gateway['interface']; + if (!is_ipaddrv6($gwifip)) continue; //Skip this target