History log of /external/iproute2/ip/link_veth.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
56f5daac98da0c405fdbc52f04afd5de82404bce 21-Mar-2016 Stephen Hemminger <stephen@networkplumber.org> ip: code cleanup

Run all the ip code through checkpatch and have it fix the obvious stuff.
/external/iproute2/ip/link_veth.c
561e650eff679296d3f4c12657721ae769cbc187 30-Sep-2014 vadimk <vadim4j@gmail.com> ip link: Shortify printing the usage of link type

Allow to print particular link type usage by:

ip link help [TYPE]

Currently to print usage for some link type it is needed
to use the following way:

ip link { add | del | set } type TYPE help

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
/external/iproute2/ip/link_veth.c
18917544879aa699281dfc45d9d8f5658f5ba283 01-Apr-2014 Kusanagi Kouichi <slash@ac.auone-net.jp> veth: Handle flags correctry

Flags for a peer override flags for the other and not used for the
peer.

before:
# ip link add up type veth peer down multicast off
# ip link
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: veth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 2e:5c:cd:f5:63:d2 brd ff:ff:ff:ff:ff:ff
3: veth1: <BROADCAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 72:b0:fa:1e:76:7a brd ff:ff:ff:ff:ff:ff

after:
# ip link add up type veth peer down multicast off
# ip link
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: veth0: <BROADCAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 6e:db:03:b3:bd:ff brd ff:ff:ff:ff:ff:ff
3: veth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether a6:62:d9:84:f0:73 brd ff:ff:ff:ff:ff:ff

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
/external/iproute2/ip/link_veth.c
5e25cf77b9e7d9ae9959db0ac5d731cfbf3b2717 26-Dec-2013 Pavel Emelyanov <xemul@parallels.com> iproute: Make it possible to specify index on link creation

The RTM_NEWLINK message accepts ifi_index non-zero value and lets
creation of links with given index (if it's free, or course). This
functionality is available since linux-v3.5.

This patch makes this API available via ip tool.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
/external/iproute2/ip/link_veth.c
e0d47aa303d7224f9be10fd769592cca5090085f 11-Dec-2013 Sergey Popovich <popovich_sergei@mail.ru> Handle netdev group for veth peer too

Currently ip-link(8) parses, but ignores "group" argument to
peer interface on veth creation.

Insert IFLA_GROUP attribute for peer interface when present.

Signed-off-by: Sergey Popovich <popovich_sergei@mail.ru>
/external/iproute2/ip/link_veth.c
be2c3142f9a76ae1f036fc4316ff425f6455ce3a 20-Dec-2013 Stephen Hemminger <stephen@networkplumber.org> veth: fix uninitialized arguments

Based on patch by Sergey Popovich <popovich_sergei@mail.ru>
This fixes crash when ip-link(8) invoced with command:

ip link add dev veth1a type veth peer
/external/iproute2/ip/link_veth.c
ac3ff7203206aae04831901c9dd831e32209fc94 05-Aug-2013 Stephen Hemminger <stephen@networkplumber.org> cleanup help message

Split it naturally
/external/iproute2/ip/link_veth.c
db02608b6f408998ea8c823fb791cead3e574f50 02-Feb-2011 Vlad Dogaru <ddvlad@rosedu.org> iproute2: support device group semantics

Add the group keyword to ip link set, which has the following meaning:
If both a group and a device name are pressent, we change the device's
group to the specified one. If only a group is present, then the
operation specified by the rest of the command should apply on an entire
group, not a single device.

So, to set eth0 to the default group, one would use
ip link set dev eth0 group default

Conversely, to set all the devices in the default group down, use
ip link set group default down

Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org>
/external/iproute2/ip/link_veth.c
118c923cc09551d3428e2905a69c07c5719988e5 25-Dec-2007 Stephen Hemminger <shemminger@linux-foundation.org> veth.h move to linux/

Move veth.h to linux/ since it is an API.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/ip/link_veth.c
c595fda55bfed9753851de5675aa310f523564b3 21-Dec-2007 Stephen Hemminger <shemminger@linux-foundation.org> veth: use kernel header file

Use santized kernel header for veth.h and put in correct place
to prevent possible future problems with API.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/ip/link_veth.c
f9329ccaf933a9dee5760de6979c7be6f17e253f 18-Dec-2007 Vitaliy Gusev <vgusev@openvz.org> veth device link management

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/ip/link_veth.c
e32d4db0a58f3673bb20fcb198e9372ded4194a6 11-Oct-2007 Stephen Hemminger <shemminger@linux-foundation.org> don't make veth a shared library

Making veth a shared library for ip caused build problems (not PIC)
and is unneeded.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/ip/link_veth.c
2da55b1bbed22e1058627f6b262158349b2b142e 11-Jul-2007 Pavel Emelianov <xemul@openvz.org> Module for ip utility to support veth device (v.2.1)

The usage is
# ip link add [name] type veth [peer <name>] [mac <mac>] [peer_mac <mac>]

This version doesn't include the fix for ip/iplink.c as Patrick
said that he had included it into his patches already.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/ip/link_veth.c