mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[IPV6]: Implement appropriate dummy rule 4 in ipv6_dev_get_saddr().
Ensure to update hiscore.rule in dummy rule 4 in ipv6_dev_get_saddr(). Pointed out by Yan Zheng <[email protected]>. Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
624f54be20
commit
220bbd7483
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue