[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071113131038.50ad9914@freepuppy.rosehill>
Date: Tue, 13 Nov 2007 13:10:38 -0800
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: "Templin, Fred L" <Fred.L.Templin@...ing.com>
Cc: <netdev@...r.kernel.org>,
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@...ux-ipv6.org>
Subject: Re: [Resend(2)] [PATCH 01/05] ipv6: RFC4214 Support (4)
> +#if defined(CONFIG_IPV6_ISATAP)
> +/* only for IFF_ISATAP interfaces */
> +static inline int ipv6_addr_is_isatap(const struct in6_addr *addr)
> +{
> + return ((addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE));
> +}
> +#endif
> +
No need to make this conditional, unless you want to define an equivalent
inline for !ISATAP that always returns 0.
--
Stephen Hemminger <shemminger@...ux-foundation.org>
-
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