[PATCH] IPv6 support for NFS server

YOSHIFUJI Hideaki / 吉藤英明 yoshfuji at linux-ipv6.org
Tue Dec 11 13:19:11 EST 2007


In article <475ED028.2010109 at ext.bull.net> (at Tue, 11 Dec 2007 19:00:08 +0100), Aurélien Charbon <aurelien.charbon at ext.bull.net> says:

> --- linux-2.6.24-rc4/include/net/ipv6.h	2007-12-10 16:11:38.000000000 +0100
> +++ linux-2.6.24-rc4-IPv6-cache-based/include/net/ipv6.h	2007-12-11 17:52:39.000000000 +0100
> @@ -400,6 +400,15 @@ static inline int ipv6_addr_v4mapped(con
>  		 a->s6_addr32[2] == htonl(0x0000ffff));
>  }
>  
> +static inline void ipv6_addr_set_v4mapped(const __be32 addr,
> +					  struct in6_addr *v4mapped)
> +{
> +	ipv6_addr_set(v4mapped,
> +			0, 0,
> +			__constant_htonl(0x0000FFFF),
> +			addr);
> +}
> +
>  /*
>   * find the first different bit between two addresses
>   * length of address must be a multiple of 32bits

Use htonl() here, not __constant_htonl().

--yoshfuji


More information about the NFSv4 mailing list