diff options
| author | David S. Miller <davem@davemloft.net> | 2011-03-12 16:22:43 -0500 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-03-12 15:08:54 -0800 | 
| commit | 4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c (patch) | |
| tree | c29c8070012cffb38fe249cf528589a675f622b1 /drivers/net/cnic.c | |
| parent | 9cce96df5b76691712dba22e83ff5efe900361e1 (diff) | |
| download | olio-linux-3.10-4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c.tar.xz olio-linux-3.10-4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c.zip  | |
ipv6: Convert to use flowi6 where applicable.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic.c')
| -rw-r--r-- | drivers/net/cnic.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index c8922f69705..8cca60e4344 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c @@ -3424,14 +3424,14 @@ static int cnic_get_v6_route(struct sockaddr_in6 *dst_addr,  			     struct dst_entry **dst)  {  #if defined(CONFIG_IPV6) || (defined(CONFIG_IPV6_MODULE) && defined(MODULE)) -	struct flowi fl; +	struct flowi6 fl6; -	memset(&fl, 0, sizeof(fl)); -	ipv6_addr_copy(&fl.fl6_dst, &dst_addr->sin6_addr); -	if (ipv6_addr_type(&fl.fl6_dst) & IPV6_ADDR_LINKLOCAL) -		fl.flowi_oif = dst_addr->sin6_scope_id; +	memset(&fl6, 0, sizeof(fl6)); +	ipv6_addr_copy(&fl6.daddr, &dst_addr->sin6_addr); +	if (ipv6_addr_type(&fl6.daddr) & IPV6_ADDR_LINKLOCAL) +		fl6.flowi6_oif = dst_addr->sin6_scope_id; -	*dst = ip6_route_output(&init_net, NULL, &fl); +	*dst = ip6_route_output(&init_net, NULL, &fl6);  	if (*dst)  		return 0;  #endif  |