From owner-svn-src-user@FreeBSD.ORG Sun Feb 7 04:13:36 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C070E106566C; Sun, 7 Feb 2010 04:13:36 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AF5368FC0C; Sun, 7 Feb 2010 04:13:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o174Dana034179; Sun, 7 Feb 2010 04:13:36 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o174DaO8034177; Sun, 7 Feb 2010 04:13:36 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <201002070413.o174DaO8034177@svn.freebsd.org> From: Kip Macy Date: Sun, 7 Feb 2010 04:13:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203596 - user/kmacy/head_flowtable_v6/sys/net X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 04:13:36 -0000 Author: kmacy Date: Sun Feb 7 04:13:36 2010 New Revision: 203596 URL: http://svn.freebsd.org/changeset/base/203596 Log: fix flow_to_route to set the right dst Modified: user/kmacy/head_flowtable_v6/sys/net/flowtable.c Modified: user/kmacy/head_flowtable_v6/sys/net/flowtable.c ============================================================================== --- user/kmacy/head_flowtable_v6/sys/net/flowtable.c Sun Feb 7 03:58:32 2010 (r203595) +++ user/kmacy/head_flowtable_v6/sys/net/flowtable.c Sun Feb 7 04:13:36 2010 (r203596) @@ -431,7 +431,7 @@ flow_to_route(struct flentry *fle, struc sin6->sin6_family = AF_INET6; sin6->sin6_len = sizeof(*sin6); hashkey = ((struct flentry_v6 *)fle)->fl_flow.ipf_key; - memcpy(&sin6->sin6_addr, &hashkey[1], sizeof (struct in6_addr)); + memcpy(&sin6->sin6_addr, &hashkey[2], sizeof (struct in6_addr)); } else #endif #ifdef INET @@ -443,7 +443,7 @@ flow_to_route(struct flentry *fle, struc sin->sin_family = AF_INET; sin->sin_len = sizeof(*sin); hashkey = ((struct flentry_v4 *)fle)->fl_flow.ipf_key; - sin->sin_addr.s_addr = hashkey[1]; + sin->sin_addr.s_addr = hashkey[2]; } #endif ; /* terminate INET6 else if no INET4 */