lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071212.031911.115042677.yoshfuji@linux-ipv6.org>
Date:	Wed, 12 Dec 2007 03:19:11 +0900 (JST)
From:	YOSHIFUJI Hideaki / 吉藤英明 
	<yoshfuji@...ux-ipv6.org>
To:	aurelien.charbon@....bull.net
Cc:	brian.haley@...com, neilb@...e.de, bfields@...ldses.org,
	netdev@...r.kernel.org, nfsv4@...ux-nfs.org,
	yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH] IPv6 support for NFS server

In article <475ED028.2010109@....bull.net> (at Tue, 11 Dec 2007 19:00:08 +0100), Aurélien Charbon <aurelien.charbon@....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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ