[ovs-dev] [ovn-ipv6 20/26] packets: Add in6_is_lla() function.
Ben Pfaff
blp at ovn.org
Wed Jul 13 19:57:29 UTC 2016
On Mon, Jul 11, 2016 at 11:56:50PM -0700, Justin Pettit wrote:
> This will have a caller in a future commit.
>
> Signed-off-by: Justin Pettit <jpettit at ovn.org>
> +static inline bool
> +in6_is_lla(struct in6_addr *addr)
> +{
> + return addr->s6_addr32[0] == htonl(0xfe800000) && !(addr->s6_addr32[1]);
> +}
One more thing: not all implementations have s6_addr32, so we probably
need a fallback.
More information about the dev
mailing list