]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Make ip utility veth driver aware
authorPavel Emelianov <xemul@sw.ru>
Wed, 2 May 2007 10:57:57 +0000 (14:57 +0400)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 22 Aug 2007 17:29:14 +0000 (10:29 -0700)
commit4ed390ce43d1ec7c881721f312260df901d8390d
treef03b5ecf3e7501cbf6153d2ceff1e72ccf4bc854
parentad1a12dbd023946695caade199707aaafa6cc560
Make ip utility veth driver aware

The new command is called "veth" with the following syntax:
* ip veth add <dev1> <dev2>
  creates interconnected pair of veth devices.
* ip veth del <dev>
  destroys the pair of veth devices, where <dev> is either
  <dev1> or <dev2> used to create the pair.

One question that is to be solved is whether or not to create
a hard-coded netlink family for veth driver. Without it the
family resolution code has to be moved to general place in ip
utility (by now it is copy-paste-ed from one file to another
till final decision).

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
ip/Makefile
ip/ip.c
ip/veth.c [new file with mode: 0644]
ip/veth.h [new file with mode: 0644]