Skip to content

Commit

Permalink
[IPV6]: Implement appropriate dummy rule 4 in ipv6_dev_get_saddr().
Browse files Browse the repository at this point in the history
Ensure to update hiscore.rule in dummy rule 4 in ipv6_dev_get_saddr().
Pointed out by Yan Zheng <yanzheng@21cn.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Nov 29, 2005
1 parent 624f54b commit 220bbd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,8 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev,
}

/* Rule 4: Prefer home address -- not implemented yet */
if (hiscore.rule < 4)
hiscore.rule++;

/* Rule 5: Prefer outgoing interface */
if (hiscore.rule < 5) {
Expand Down

0 comments on commit 220bbd7

Please sign in to comment.