Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2010 04:13:36 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r203596 - user/kmacy/head_flowtable_v6/sys/net
Message-ID:  <201002070413.o174DaO8034177@svn.freebsd.org>

index | next in thread | raw e-mail

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 */


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002070413.o174DaO8034177>