Re: [PATCH 1/4] [IPv6] Add link and site-local scope inline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <4615EAC0.3080709@xxxxxx> (at Fri, 06 Apr 2007 02:37:52 -0400), Brian Haley <brian.haley@xxxxxx> says:

> static inline int ipv6_addr_scope_linklocal(const struct in6_addr *a)
> {
> return ((a->s6_addr32[0] & htonl(0xFFC00000)) == htonl(0xFE800000) ||
>          ((a->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000) &&
>           ((a)->s6_addr[1] & 0x0f) == IPV6_ADDR_SCOPE_LINKLOCAL)))
> }
> 
> That's not that clean an inline anymore, but still doable...

I would prefer to have ipv6_addr_linklocal() and
ipv6_addr_mc_linklocal() aligning with RFC3493.

--yoshfuji
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux