Branch: refs/heads/master
Home:
https://github.com/jpirko/libteam
Commit: bc83c22d01888edda9d8e30367ee22612fe8985a
https://github.com/jpirko/libteam/commit/bc83c22d01888edda9d8e30367ee2261...
Author: Sridhar Samudrala <sridhar.samudrala(a)intel.com>
Date: 2015-05-30 (Sat, 30 May 2015)
Changed paths:
M libteam/libteam.c
Log Message:
-----------
libteam: Add check to disallow creating device names longer than 15 chars.
Trying to create a team device with name > 15 char results in a failure, but
a netdev with truncated name is created.
Netdevice "0123456789abcdef" not found.
teamd_init() failed.
Failed: No such device
114: 0123456789abcde@NONE: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default
link/ether 42:21:52:eb:37:a0 brd ff:ff:ff:ff:ff:ff
This patch fixes this issue by failing before a netdev with truncated name
is created.
Failed to create team device.
teamd_init() failed.
Failed: File name too long
Signed-off-by: Sridhar Samudrala <sridhar.samudrala(a)intel.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>