]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: NS target should accept link local address
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 27 May 2022 06:44:39 +0000 (14:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 May 2022 14:29:56 +0000 (15:29 +0100)
commit880632c7e38ee140eac7cb721c76fe951fa9d23a
tree0028f6b82ee146f83c125d1585cc9a5567200344
parentddc6a533ae1398db99d4ba1c86afc073d1ea68c1
bonding: NS target should accept link local address

When setting bond NS target, we use bond_is_ip6_target_ok() to check
if the address valid. The link local address was wrongly rejected in
bond_changelink(), as most time the user just set the ARP/NS target to
gateway, while the IPv6 gateway is always a link local address when user
set up interface via SLAAC.

So remove the link local addr check when setting bond NS target.

Fixes: 6d07932dd659 ("bonding: add new option ns_ip6_target")
Reported-by: Li Liang <liali@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c