Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ip_addr: simplify check for RFC 1918
This function is used everywhere as follows: ```c flag = (ip_addr_is_1918(x)==1) ? 1 : 0; ``` Let's just make it return the expected 0 or 1. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
- Loading branch information
Showing
4 changed files
with
7 additions
and
10 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
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