summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLutz Jaenicke <ljaenicke@innominate.com>2013-08-29 09:50:28 +0200
committerStephen Hemminger <stephen@networkplumber.org>2013-08-31 10:30:11 -0700
commit7dc0481aa15c96f78079144c52c530c4b8a17f9e (patch)
treed5ed434a395c476140ed8b6f2582479d9529cd12
parent4b8000f37ad5efe65c5dec0a1ea37192a9e05ae2 (diff)
macvlan: fix typo in macvlan_print_opt()
The mode information is contained in IFLA_MACVLAN_MODE instead of IFLA_VLAN_ID (both evaluating to "1" in their enums). Signed-off-by: Lutz Jaenicke <ljaenicke@innominate.com>
-rw-r--r--ip/iplink_macvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/iplink_macvlan.c b/ip/iplink_macvlan.c
index 5b4b868b..ec511065 100644
--- a/ip/iplink_macvlan.c
+++ b/ip/iplink_macvlan.c
@@ -79,7 +79,7 @@ static void macvlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]
RTA_PAYLOAD(tb[IFLA_MACVLAN_MODE]) < sizeof(__u32))
return;
- mode = rta_getattr_u32(tb[IFLA_VLAN_ID]);
+ mode = rta_getattr_u32(tb[IFLA_MACVLAN_MODE]);
fprintf(f, " mode %s ",
mode == MACVLAN_MODE_PRIVATE ? "private"
: mode == MACVLAN_MODE_VEPA ? "vepa"