svn commit: r203596 - user/kmacy/head_flowtable_v6/sys/net
Kip Macy
kmacy at FreeBSD.org
Sun Feb 7 04:13:36 UTC 2010
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 */
More information about the svn-src-user
mailing list