Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63411
b: refs/heads/master
c: c61a7d1
h: refs/heads/master
i:
  63409: 1c2dd04
  63407: f01ab21
v: v3
  • Loading branch information
Dave Johnson authored and David S. Miller committed Jul 31, 2007
1 parent 3ed603f commit d82f59f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0773192b0f8914222cd27e682c49f978a6c7860a
refs/heads/master: c61a7d10efbd187ab9bb54871238ebd1dfcacd44
3 changes: 3 additions & 0 deletions trunk/net/ipv6/addrconf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ int __ipv6_addr_type(const struct in6_addr *addr)
if ((st & htonl(0xFFC00000)) == htonl(0xFEC00000))
return (IPV6_ADDR_SITELOCAL | IPV6_ADDR_UNICAST |
IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_SITELOCAL)); /* addr-select 3.1 */
if ((st & htonl(0xFE000000)) == htonl(0xFC000000))
return (IPV6_ADDR_UNICAST |
IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_GLOBAL)); /* RFC 4193 */

if ((addr->s6_addr32[0] | addr->s6_addr32[1]) == 0) {
if (addr->s6_addr32[2] == 0) {
Expand Down

0 comments on commit d82f59f

Please sign in to comment.