]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute2: macvlan: add "source" mode
authormichael-dev@fami-braun.de <michael-dev@fami-braun.de>
Tue, 22 Nov 2016 10:59:13 +0000 (11:59 +0100)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 29 Nov 2016 20:41:42 +0000 (12:41 -0800)
commitaa1b44ca773d10067f64594032cd2bf810892e03
treebfd25249a75fbbeb578b2b97a3b018d30a460883
parent6e2e71e16ec53b5fa1d229588fe03ffe6e93902e
iproute2: macvlan: add "source" mode

Adjusting iproute2 utility to support new macvlan link type mode called
"source".

Example of commands that can be applied:
  ip link add link eth0 name macvlan0 type macvlan mode source
  ip link set link dev macvlan0 type macvlan macaddr add 00:11:11:11:11:11
  ip link set link dev macvlan0 type macvlan macaddr del 00:11:11:11:11:11
  ip link set link dev macvlan0 type macvlan macaddr flush
  ip -details link show dev macvlan0

Based on previous work of Stefan Gula <steweg@gmail.com>

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Cc: steweg@gmail.com
v5:
 - rebase and fix checkpatch

v4:
 - add MACADDR_SET support
 - skip FLAG_UNICAST / FLAG_UNICAST_ALL as this is not upstream
 - fix man page
ip/iplink_macvlan.c
man/man8/ip-link.8.in