On Wed, May 16, 2018 at 02:42:24PM +0100, Luca Boccassi wrote:
> Hans reported a regression in v4.16.0, ip route now requires -6 to be
> manually added when using v6 addresses while up to 4.15 it didn't, the
> commands quoted show the problem.
> 
> Bisecting shows that the following commit from Serhey introduced the
> problem:
> 
> 93fa12418dc6f5943692250244be303bb162175b
> utils: Always specify family and ->bytelen in get_prefix_1()
> 
> Could you please have a look when you have a moment? It's very easy to
> reproduce, and it breaks existing scripts and so on.

Fixed already:

------------------------------------------------------------------------------
mike@unicorn:~/work/git/iproute2> git --no-pager log --grep 93fa12418dc6
commit d42c7891d26e4d5616a55aac9fe10813767fcf9c
Author: David Ahern <dsah...@gmail.com>
Date:   Fri Apr 13 09:36:33 2018 -0700

    utils: Do not reset family for default, any, all addresses
    
    Thomas reported a change in behavior with respect to autodectecting
    address families. Specifically, 'ip ro add default via fe80::1'
    syntax was failing to treat fe80::1 as an IPv6 address as it did in
    prior releases. The root causes appears to be a change in family when
    the default keyword is parsed.
    
    'default', 'any' and 'all' are relevant outside of AF_INET. Leave the
    family arg as is for these when setting addr.
    
    Fixes: 93fa12418dc6 ("utils: Always specify family and ->bytelen in 
get_prefix_1()")
    Reported-by: Thomas Deutschmann <whi...@gentoo.org>
    Signed-off-by: David Ahern <dsah...@gmail.com>
    Cc: Serhey Popovych <serhe.popov...@gmail.com>
------------------------------------------------------------------------------

Michal Kubecek

Reply via email to