Commit f0d4856e authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV6]: Fix reserved subnet anycast checking in __ipv6_regen_rndid().

parent c06f3cef
...@@ -1147,7 +1147,7 @@ static int __ipv6_regen_rndid(struct inet6_dev *idev) ...@@ -1147,7 +1147,7 @@ static int __ipv6_regen_rndid(struct inet6_dev *idev)
* - XXX: already assigned to an address on the device * - XXX: already assigned to an address on the device
*/ */
if (idev->rndid[0] == 0xfd && if (idev->rndid[0] == 0xfd &&
(idev->rndid[1]&idev->rndid[2]&idev->rndid[3]&idev->rndid[4]&idev->rndid[5]&idev->rndid[6]) && (idev->rndid[1]&idev->rndid[2]&idev->rndid[3]&idev->rndid[4]&idev->rndid[5]&idev->rndid[6]) == 0xff &&
(idev->rndid[7]&0x80)) (idev->rndid[7]&0x80))
goto regen; goto regen;
if ((idev->rndid[0]|idev->rndid[1]) == 0) { if ((idev->rndid[0]|idev->rndid[1]) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment