Skip to content

do not set IPv6-only options on IPv4 addresses

Andrea Claudi netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ip address: do not set nodad option for IPv4 addressesip/ipaddress.c+4 -10 replies
2/3ip address: do not set home option for IPv4 addressesip/ipaddress.c+4 -10 replies
3/3ip address: do not set mngtmpaddr option for IPv4 addressesip/ipaddress.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH iproute2 v2 0/3] do not set IPv6-only options on IPv4 addresses

'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 print warning messages on error to not break existing scripted setups.

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(-)
Signature · 1 line
2.20.1