- unsigned long mode;
-
- unsigned long netmask = 0;
- unsigned long broadcast;
- unsigned long network;
- unsigned long ipaddr;
-
- static const struct option long_options[] = {
- {"netmask", no_argument, NULL, 'n'},
- {"broadcast", no_argument, NULL, 'b'},
- {"network", no_argument, NULL, 'w'},
-#ifdef CONFIG_FEATURE_IPCALC_FANCY
- {"hostname", no_argument, NULL, 'h'},
- {"silent", no_argument, NULL, 's'},
+ unsigned opt;
+ int have_netmask = 0;
+ in_addr_t netmask, broadcast, network, ipaddr;
+ struct in_addr a;
+ char *ipstr;
+
+#if ENABLE_FEATURE_IPCALC_LONG_OPTIONS
+ applet_long_options = ipcalc_longopts;