Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755194Ab3HLT5n (ORCPT ); Mon, 12 Aug 2013 15:57:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46395 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086Ab3HLT5i (ORCPT ); Mon, 12 Aug 2013 15:57:38 -0400 Message-ID: <52093E29.5010604@redhat.com> Date: Mon, 12 Aug 2013 15:57:29 -0400 From: Vlad Yasevich Reply-To: vyasevic@redhat.com Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Asbjoern Sloth Toennesen CC: "David S. Miller" , Stephen Hemminger , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtnetlink: rtnl_bridge_getlink: Call nlmsg_find_attr() with ifinfomsg header References: <52090C26.4090001@fiberby.net> <1376325009-8399-1-git-send-email-ast@fiberby.net> In-Reply-To: <1376325009-8399-1-git-send-email-ast@fiberby.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1207 Lines: 36 On 08/12/2013 12:30 PM, Asbjoern Sloth Toennesen wrote: > Fix the iproute2 command `bridge vlan show`, after switching from > rtgenmsg to ifinfomsg. > > Signed-off-by: Asbjoern Sloth Toennesen Thanks.. I've still been using an older iproute version and didn't see this. Reviewed-by: Vlad Yasevich > --- > net/core/rtnetlink.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c > index 3de7408..a043171 100644 > --- a/net/core/rtnetlink.c > +++ b/net/core/rtnetlink.c > @@ -2384,7 +2384,7 @@ static int rtnl_bridge_getlink(struct sk_buff *skb, struct netlink_callback *cb) > struct nlattr *extfilt; > u32 filter_mask = 0; > > - extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct rtgenmsg), > + extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct ifinfomsg), > IFLA_EXT_MASK); > if (extfilt) > filter_mask = nla_get_u32(extfilt); > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/