From patchwork Thu Aug 29 07:50:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lutz Jaenicke X-Patchwork-Id: 270705 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 35CC92C0089 for ; Thu, 29 Aug 2013 17:50:49 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755971Ab3H2Hup (ORCPT ); Thu, 29 Aug 2013 03:50:45 -0400 Received: from home.innominate.com ([77.245.32.75]:57808 "EHLO home.innominate.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755966Ab3H2Huo (ORCPT ); Thu, 29 Aug 2013 03:50:44 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by home.innominate.com (Postfix) with ESMTP id E42EC2158; Thu, 29 Aug 2013 09:50:41 +0200 (CEST) Received: from home.innominate.com ([127.0.0.1]) by localhost (innominate.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gG5TvOTIYW+S; Thu, 29 Aug 2013 09:50:41 +0200 (CEST) Received: from lutz.bln.innominate.local (lutz.bln.innominate.local [10.1.0.160]) by home.innominate.com (Postfix) with ESMTP id D02A2215C; Thu, 29 Aug 2013 09:50:41 +0200 (CEST) Received: by lutz.bln.innominate.local (Postfix, from userid 1000) id 756112A24A; Thu, 29 Aug 2013 09:50:41 +0200 (CEST) From: Lutz Jaenicke To: netdev@vger.kernel.org Cc: Lutz Jaenicke Subject: [iproute2] macvlan: fix typo in macvlan_print_opt() Date: Thu, 29 Aug 2013 09:50:28 +0200 Message-Id: <1377762628-28843-1-git-send-email-ljaenicke@innominate.com> X-Mailer: git-send-email 1.7.10.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- ip/iplink_macvlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iplink_macvlan.c b/ip/iplink_macvlan.c index 5b4b868..ec51106 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"