diff options
| author | Daniil Baturin <daniil@baturin.org> | 2013-06-03 05:14:41 -0700 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2013-06-03 05:14:41 -0700 |
| commit | a1fab61d26f36e965253c591b6052e67c025fb85 (patch) | |
| tree | 9295b1790b9c44d9254a2ee04b44d1c630245eef /man/ipaddrcheck.x | |
| parent | 62850cbe4e9b038cdaf250732794aaaf9f355225 (diff) | |
| download | ipaddrcheck-a1fab61d26f36e965253c591b6052e67c025fb85.tar.gz ipaddrcheck-a1fab61d26f36e965253c591b6052e67c025fb85.zip | |
Add a man page draft.
Diffstat (limited to 'man/ipaddrcheck.x')
| -rw-r--r-- | man/ipaddrcheck.x | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/man/ipaddrcheck.x b/man/ipaddrcheck.x new file mode 100644 index 0000000..11b9bcf --- /dev/null +++ b/man/ipaddrcheck.x @@ -0,0 +1,32 @@ +[NAME] +ipaddrcheck \- an IPv4 and IPv6 validator suitable for use in scripts + +[DESCRIPTION] +ipaddrcheck is capable of checking various facts about IPv4 and IPv6 addresses, +from checking whether the address is valid to checking whether it is an IPv4 +multicast address, host or network address and many more. + +[OPTIONS] +If more than one option is given, they work as logical AND (i.e. if one of them +fails, overall check result is fail). Logical consistency of the options is +left up to the user. The program does not detect whether given options are +compatible, so a mutually exclusive combination like "--is-ipv4 --is-ipv6" +will be accepted and simply return fail for any argument. + +[DEFINITIONS] +Broadcast address: the last address of an IPv4 subnet. + +Interface address: address passes --is-valid-intf-address check if +prefix length is specified, it is not a broadcast address, not a multicast +address, not unspecified address, not from IPv4 THIS network, not a network address +and not the IPv4 limited broadcast address. + +[EXAMPLES] +Check if the argument is a valid IPv4 host address: +ipaddrcheck --is-ipv4-host 192.0.2.78/24 + +Check if the argument is an address that can be assigned to a loopback interface: +ipaddrcheck --allow-loopback --is-valid-intf-address 127.0.0.7/8 + +[AUTHOR] +Written by SO3Group. |
