Iptools

Module VersionHex DocsTotal DownloadLicenseLast Updated

A set of functions for working with IPv4 addresses.

There are also some functions for manipulating subnet masks.

Reserved IP addresses

You almost certainly want to use is_reserved?/1 to find out if an IP address is “normal” or not. There are a lot of reserved addresses, such as the 0.0.0.0/8 network which are not RFC1918 addresses. So unless you’re really checking for just RFC1918, use is_reserved?/1.

Running tests

I’ve got 100% test coverage for the first time in my whole life! Run mix test to see if they still pass.

License

Copyright (c) 2016, Kevin Thompson.

This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE.md file for more details.