-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 3cd4beb)
- Loading branch information
Praveen K V
authored and
Édouard Thuleau
committed
Dec 4, 2015
1 parent
da77af4
commit 5f4ec35
Showing
3 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters