From: Andrea Claudi <aclaudi@redhat.com>
To: netdev@vger.kernel.org
Cc: stephen@networkplumber.org, dsahern@kernel.org
Subject: [PATCH iproute2 0/3] do not set IPv6-only options on IPv4 addresses
Date: Mon, 24 Jun 2019 19:05:52 +0200 [thread overview]
Message-ID: <cover.1561394228.git.aclaudi@redhat.com> (raw)
'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(-)
--
2.20.1
next reply other threads:[~2019-06-24 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 17:05 Andrea Claudi [this message]
2019-06-24 17:05 ` [PATCH iproute2 1/3] ip address: do not set nodad option for IPv4 addresses Andrea Claudi
2019-06-24 17:05 ` [PATCH iproute2 2/3] ip address: do not set home " Andrea Claudi
2019-06-24 17:05 ` [PATCH iproute2 3/3] ip address: do not set mngtmpaddr " Andrea Claudi
2019-06-24 17:20 ` [PATCH iproute2 0/3] do not set IPv6-only options on " Stephen Hemminger
2019-06-24 21:38 ` Andrea Claudi
2019-06-24 21:51 ` David Ahern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1561394228.git.aclaudi@redhat.com \
--to=aclaudi@redhat.com \
--cc=dsahern@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).