[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190624102041.25224fae@hermes.lan>
Date: Mon, 24 Jun 2019 10:20:41 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Andrea Claudi <aclaudi@...hat.com>
Cc: netdev@...r.kernel.org, dsahern@...nel.org
Subject: Re: [PATCH iproute2 0/3] do not set IPv6-only options on IPv4
addresses
On Mon, 24 Jun 2019 19:05:52 +0200
Andrea Claudi <aclaudi@...hat.com> wrote:
> 'home', 'nodad' and 'mngtmpaddr' options are IPv6-only, but
> it is possible to set them on IPv4 addresses, too. This should
> not be possible.
>
> Fix this adding a check on the protocol family before setting
> the flags, and exiting with invarg() on error.
>
> Andrea Claudi (3):
> ip address: do not set nodad option for IPv4 addresses
> ip address: do not set home option for IPv4 addresses
> ip address: do not set mngtmpaddr option for IPv4 addresses
>
> ip/ipaddress.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
>
Maybe this should be a warning, not a failure.
A little concerned that there will be some user with a scripted setup
that this breaks.
Powered by blists - more mailing lists