Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
team netdevice library
C Shell Python
branch: master

libteam: Add check to disallow creating device names longer than 15 c…

…hars.

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@intel.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
latest commit bc83c22d01
Sridhar Samudrala authored committed

README

# libteam - Library for controlling team network device #

The purpose of the Team driver is to provide a mechanism to team multiple NICs (ports) into one logical one (teamdev) at L2 layer. The process is called "channel bonding", "Ethernet bonding", "channel teaming", "link aggregation", etc. This is already implemented in the Linux kernel by the bonding driver.

One thing to note is that Team driver project does try to provide the similar functionality as the bonding driver, however architecturally it is quite different from bonding driver. Team driver is modular, userspace driven, very lean and efficient, and it does have some distinct advantages over bonding. The way Team is configured differs dramatically from the way bonding is.

## Install

    $ ./autogen.sh
    $ ./configure
    $ make
    $ sudo make install

## Authors

* Jiri Pirko <jiri@resnulli.us>

## Internet Resources

* Project Home:     http://www.libteam.org/
* Git Source Tree:  https://github.com/jpirko/libteam/
* Wiki:             https://fedorahosted.org/libteam/
* Tutorial:         https://fedorahosted.org/libteam/wiki/Tutorial
* Documentation:    https://fedorahosted.org/libteam/wiki/InfrastructureSpecification

## License

Copyright (C) 2011-2015 Jiri Pirko <jiri@resnulli.us>

libteam is distributed under GNU Lesser General Public License version 2.1.
See the file "COPYING" in the source distribution for information on terms & conditions for accessing and otherwise using libteam.
Something went wrong with that request. Please try again.