]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iplink: do not require assigning negative ifindex at link creation
authorAtzm Watanabe <atzm@stratosphere.co.jp>
Wed, 1 Oct 2014 05:47:50 +0000 (14:47 +0900)
committerStephen Hemminger <shemming@brocade.com>
Thu, 9 Oct 2014 15:24:01 +0000 (08:24 -0700)
commit68ac9ab339783119e6a8cabfafcd9479094529b0
treebe465e529d84ec964030a7edcd5a043f86f37681
parentae0d90737c1d5d2d86112420e0bd3d87aebad706
iplink: do not require assigning negative ifindex at link creation

Since commit 3c682146aeff, iplink requires assigning negative
ifindex (-1) to the kernel when creating interface without
specifying index.

v2: checking whether index is -1, suggested by Cong Wang.

Cc: Cong Wang <cwang@twopensource.com>
Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp>
Acked-by: Cong Wang <cwang@twopensource.com>
ip/iplink.c