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(-) -- 1.7.10.4