Skip to content

Improve iplink index, alias and name parameters handling

Serhey Popovych netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iplink: Improve index parameter handlingip/iplink.c+6 -86 replies
2/3iplink: Process "alias" parameter correctlyip/iplink.c+4 -30 replies
3/3iplink: Kill redundant network device name checksip/iplink_vxcan.c ip/link_veth.c+6 -100 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH iproute2 0/3] Improve iplink index, alias and name parameters handling

In this series I present following improvements:

1) Check index is greather than zero and forbid specifying it multiple times in iplink_parse(). Use 0 instead of -1 as special value in iplink_modify().

2) Do not stop parameters processing after alias given. Check alias length does not exceed IFALIASZ - 1.

3) Drop redundant name parameter length checks in iplink_vxcan.c and link_veth.c.

See individual patch description message for details.

Thanks,
Serhii

Serhey Popovych (3):
iplink: Improve index parameter handling
iplink: Process "alias" parameter correctly
iplink: Kill redundant network device name checks

 ip/iplink.c       |   21 ++++++++++-----------
 ip/iplink_vxcan.c |    8 +++-----
 ip/link_veth.c    |    8 +++-----
 3 files changed, 16 insertions(+), 21 deletions(-)
Signature · 1 line
1.7.10.4