* [PATCH] iproute2: ip addr: Fix noprefixroute and autojoin for IPv4
@ 2020-10-03 14:10 Adel Belhouane
2020-10-06 22:17 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Adel Belhouane @ 2020-10-03 14:10 UTC (permalink / raw)
To: netdev; +Cc: Adel Belhouane
These were reported as IPv6-only and ignored:
# ip address add 192.0.2.2/24 dev dummy5 noprefixroute
Warning: noprefixroute option can be set only for IPv6 addresses
# ip address add 224.1.1.10/24 dev dummy5 autojoin
Warning: autojoin option can be set only for IPv6 addresses
This enables them back for IPv4.
Fixes: 9d59c86e575b5 ("iproute2: ip addr: Organize flag properties
structurally")
Signed-off-by: Adel Belhouane <bugs.a.b@free.fr>
---
ip/ipaddress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index ccf67d1dd55c..2b4cb48a485e 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -1249,8 +1249,8 @@ static const struct ifa_flag_data_t {
{ .name = "tentative", .mask = IFA_F_TENTATIVE, .readonly = true, .v6only = true},
{ .name = "permanent", .mask = IFA_F_PERMANENT, .readonly = true, .v6only = true},
{ .name = "mngtmpaddr", .mask = IFA_F_MANAGETEMPADDR, .readonly = false, .v6only = true},
- { .name = "noprefixroute", .mask = IFA_F_NOPREFIXROUTE, .readonly = false, .v6only = true},
- { .name = "autojoin", .mask = IFA_F_MCAUTOJOIN, .readonly = false, .v6only = true},
+ { .name = "noprefixroute", .mask = IFA_F_NOPREFIXROUTE, .readonly = false, .v6only = false},
+ { .name = "autojoin", .mask = IFA_F_MCAUTOJOIN, .readonly = false, .v6only = false},
{ .name = "stable-privacy", .mask = IFA_F_STABLE_PRIVACY, .readonly = true, .v6only = true},
};
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iproute2: ip addr: Fix noprefixroute and autojoin for IPv4
2020-10-03 14:10 [PATCH] iproute2: ip addr: Fix noprefixroute and autojoin for IPv4 Adel Belhouane
@ 2020-10-06 22:17 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2020-10-06 22:17 UTC (permalink / raw)
To: Adel Belhouane; +Cc: netdev
On Sat, 3 Oct 2020 16:10:05 +0200
Adel Belhouane <bugs.a.b@free.fr> wrote:
> These were reported as IPv6-only and ignored:
>
> # ip address add 192.0.2.2/24 dev dummy5 noprefixroute
> Warning: noprefixroute option can be set only for IPv6 addresses
> # ip address add 224.1.1.10/24 dev dummy5 autojoin
> Warning: autojoin option can be set only for IPv6 addresses
>
> This enables them back for IPv4.
>
> Fixes: 9d59c86e575b5 ("iproute2: ip addr: Organize flag properties
> structurally")
> Signed-off-by: Adel Belhouane <bugs.a.b@free.fr>
Thanks, your patch was corrupted by mail and would not apply.
Did the same change manually and kept your SOB
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-06 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 14:10 [PATCH] iproute2: ip addr: Fix noprefixroute and autojoin for IPv4 Adel Belhouane
2020-10-06 22:17 ` Stephen Hemminger
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).