summaryrefslogtreecommitdiff
path: root/src/ipaddrcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipaddrcheck.c')
-rw-r--r--src/ipaddrcheck.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ipaddrcheck.c b/src/ipaddrcheck.c
index 588889e..80551e0 100644
--- a/src/ipaddrcheck.c
+++ b/src/ipaddrcheck.c
@@ -44,13 +44,11 @@
#define IS_IPV6_UNICAST 180
#define IS_IPV6_MULTICAST 190
#define IS_IPV6_LINKLOCAL 200
-#define HAS_MASK 210
#define IS_VALID_INTF_ADDR 220
static const struct option options[] =
{
{ "is-valid", no_argument, NULL, 'a' },
- { "has-mask", no_argument, NULL, 'b' },
{ "is-ipv4", no_argument, NULL, 'c' },
{ "is-ipv4-cidr", no_argument, NULL, 'd' },
{ "is-ipv4-single", no_argument, NULL, 'e' },
@@ -107,7 +105,6 @@ int main(int argc, char* argv[])
action = IS_VALID;
break;
case 'b':
- action = HAS_MASK;
break;
case 'c':
action = IS_IPV4;
@@ -208,9 +205,6 @@ int main(int argc, char* argv[])
case IS_VALID:
result = is_valid_address(address);
break;
- case HAS_MASK:
- result = has_mask(address_str);
- break;
case IS_IPV4:
result = is_ipv4(address);
break;