commit 5f4ec358c5704806b1a1d0bec0043a1a517ddb2c
Author: Praveen K V <email address hidden>
Date: Sat Nov 8 23:28:07 2014 +0530
Fix exception thrown by boost in MaskToPrefix
Boost Ip4Address() takes unsigned long as argument. If the address
passed is greater than 0xFFFFFFFF, it throws exception. Method
MaskToPrefix has potential to pass values greater than 0xFFFFFFFF.
Renamed MaskToPrefix to PrefixToIpAddress and moved to base/util.h.
The new method uses uint32_t for mask. This ensures the value is
never greater than 0xFFFFFFFF
Change-Id: I64a69c59e7902142e68e09ecef8964a3d79933f7
Closes-Bug: #1390594
(cherry picked from commit 3cd4beb288b9a69e0ea8212c07a639dbdee75418)
Reviewed: https:/ /review. opencontrail. org/15603 github. org/Juniper/ contrail- controller/ commit/ 5f4ec358c570480 6b1a1d0bec0043a 1a517ddb2c
Committed: http://
Submitter: Zuul
Branch: R1.10
commit 5f4ec358c570480 6b1a1d0bec0043a 1a517ddb2c
Author: Praveen K V <email address hidden>
Date: Sat Nov 8 23:28:07 2014 +0530
Fix exception thrown by boost in MaskToPrefix
Boost Ip4Address() takes unsigned long as argument. If the address
passed is greater than 0xFFFFFFFF, it throws exception. Method
MaskToPrefix has potential to pass values greater than 0xFFFFFFFF.
Renamed MaskToPrefix to PrefixToIpAddress and moved to base/util.h.
The new method uses uint32_t for mask. This ensures the value is
never greater than 0xFFFFFFFF
Change-Id: I64a69c59e79021 42e68e09ecef896 4a3d79933f7 e0ea8212c07a639 dbdee75418)
Closes-Bug: #1390594
(cherry picked from commit 3cd4beb288b9a69