From patchwork Wed Oct 7 15:46:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Haley X-Patchwork-Id: 35309 X-Patchwork-Delegate: davem@davemloft.net 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.176.167]) by ozlabs.org (Postfix) with ESMTP id 2F9CEB7B86 for ; Thu, 8 Oct 2009 02:52:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934087AbZJGPrc (ORCPT ); Wed, 7 Oct 2009 11:47:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759400AbZJGPrc (ORCPT ); Wed, 7 Oct 2009 11:47:32 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:30629 "EHLO g1t0027.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759397AbZJGPrb (ORCPT ); Wed, 7 Oct 2009 11:47:31 -0400 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g1t0027.austin.hp.com (Postfix) with ESMTP id 641D33820C; Wed, 7 Oct 2009 15:46:55 +0000 (UTC) Received: from [16.1.1.100] (squirrel.fc.hp.com [15.11.146.57]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 8C76B24182; Wed, 7 Oct 2009 15:46:54 +0000 (UTC) Message-ID: <4ACCB7ED.7070901@hp.com> Date: Wed, 07 Oct 2009 11:46:53 -0400 From: Brian Haley Organization: Open Source and Linux Organization User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: David Miller CC: "netdev@vger.kernel.org" Subject: [PATCH] IPv6: use ipv6_addr_copy() in ip6_route_redirect() Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Change ip6_route_redirect() to use ipv6_addr_copy(). Signed-off-by: Brian Haley --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d6fe764..df9432a 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1471,9 +1471,10 @@ static struct rt6_info *ip6_route_redirect(struct in6_addr *dest, }, }, }, - .gateway = *gateway, }; + ipv6_addr_copy(&rdfl.gateway, gateway); + if (rt6_need_strict(dest)) flags |= RT6_LOOKUP_F_IFACE;