Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15299
b: refs/heads/master
c: 6b3ae80
h: refs/heads/master
i:
  15297: 525602f
  15295: 62cdc8c
v: v3
  • Loading branch information
YOSHIFUJI Hideaki committed Dec 21, 2005
1 parent 80e964e commit 5e867b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5e33bddd3c798f681f8f3027270127be6b61a3b
refs/heads/master: 6b3ae80a63e47f6e97d68a1ddd520e3509e62821
9 changes: 8 additions & 1 deletion trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,11 +908,18 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev,

score.addr_type = __ipv6_addr_type(&ifa->addr);

/* Rule 0: Candidate Source Address (section 4)
/* Rule 0:
* - Tentative Address (RFC2462 section 5.4)
* - A tentative address is not considered
* "assigned to an interface" in the traditional
* sense.
* - Candidate Source Address (section 4)
* - In any case, anycast addresses, multicast
* addresses, and the unspecified address MUST
* NOT be included in a candidate set.
*/
if (ifa->flags & IFA_F_TENTATIVE)
continue;
if (unlikely(score.addr_type == IPV6_ADDR_ANY ||
score.addr_type & IPV6_ADDR_MULTICAST)) {
LIMIT_NETDEBUG(KERN_DEBUG
Expand Down

0 comments on commit 5e867b9

Please sign in to comment.