]> git.proxmox.com Git - mirror_iproute2.git/commit
addr: Fix noprefixroute and autojoin for IPv4
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Oct 2020 22:15:56 +0000 (15:15 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Oct 2020 22:15:56 +0000 (15:15 -0700)
commitbe1bea843234878a936fdf854e511053d528bf75
tree0d86df6288f656299e72409916313521af141dc9
parente410c963e398e4a83c113af9ce74b65f8afc306f
addr: Fix noprefixroute and autojoin for IPv4

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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c