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>
This commit is contained in:
parent
4b8000f37a
commit
7dc0481aa1
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue