• Home
  • Raw
  • Download

Lines Matching refs:arg

226   char * const arg;  member
641 if (usage[i].arg) in do_usage()
643 strcpy(buff, usage[i].arg); in do_usage()
645 if (tab[j].handle == *(usage[i].arg)) in do_usage()
666 static char *parse_dhcp_opt(char *arg, int flags) in parse_dhcp_opt() argument
681 while (arg) in parse_dhcp_opt()
683 comma = split(arg); in parse_dhcp_opt()
685 for (cp = arg; *cp; cp++) in parse_dhcp_opt()
691 new->opt = atoi(arg); in parse_dhcp_opt()
696 if (strstr(arg, "option:") == arg) in parse_dhcp_opt()
700 strcasecmp(opttab[i].name, arg+7) == 0) in parse_dhcp_opt()
709 else if (strstr(arg, "vendor:") == arg) in parse_dhcp_opt()
711 new->u.vendor_class = (unsigned char *)opt_string_alloc(arg+7); in parse_dhcp_opt()
714 else if (strstr(arg, "encap:") == arg) in parse_dhcp_opt()
716 new->u.encap = atoi(arg+6); in parse_dhcp_opt()
723 if (strstr(arg, "net:") == arg) in parse_dhcp_opt()
724 new->netid->net = opt_string_alloc(arg+4); in parse_dhcp_opt()
726 new->netid->net = opt_string_alloc(arg); in parse_dhcp_opt()
731 arg = comma; in parse_dhcp_opt()
883 arg = comma; in parse_dhcp_opt()
884 comma = split(arg); in parse_dhcp_opt()
886 while (arg && *arg) in parse_dhcp_opt()
889 if (!(dom = arg = canonicalise_opt(arg))) in parse_dhcp_opt()
895 newp = opt_malloc(len + strlen(arg) + 2 + header_size); in parse_dhcp_opt()
903 while (*arg) in parse_dhcp_opt()
907 for (j = 0; *arg && (*arg != '.'); arg++, j++) in parse_dhcp_opt()
908 *q++ = *arg; in parse_dhcp_opt()
910 if (*arg) in parse_dhcp_opt()
911 arg++; in parse_dhcp_opt()
929 arg = comma; in parse_dhcp_opt()
930 comma = split(arg); in parse_dhcp_opt()
978 static char *one_opt(int option, char *arg, char *gen_prob, int nest) in one_opt() argument
1021 char *file = opt_string_alloc(arg); in one_opt()
1040 comma = split(arg); in one_opt()
1041 if (!(directory = opt_string_alloc(arg))) in one_opt()
1044 for (arg = comma; arg; arg = comma) in one_opt()
1046 comma = split(arg); in one_opt()
1051 li->suffix = opt_string_alloc(arg); in one_opt()
1110 if (strchr(arg, '/')) in one_opt()
1111 daemon->log_file = opt_string_alloc(arg); in one_opt()
1118 if (hostname_isequal((char *)facilitynames[i].c_name, arg)) in one_opt()
1130 daemon->runfile = opt_string_alloc(arg); in one_opt()
1137 daemon->dhcp_hosts_file = opt_string_alloc(arg); in one_opt()
1144 daemon->dhcp_opts_file = opt_string_alloc(arg); in one_opt()
1149 char *name = opt_string_alloc(arg); in one_opt()
1183 if ((comma = split(arg))) in one_opt()
1190 if (!(name = canonicalise_opt(arg)) || in one_opt()
1205 if (!(daemon->mxtarget = canonicalise_opt(arg))) in one_opt()
1211 daemon->lease_file = opt_string_alloc(arg); in one_opt()
1220 daemon->lease_change_command = opt_string_alloc(arg); in one_opt()
1229 new->fname = opt_string_alloc(arg); in one_opt()
1238 if (strcmp (arg, "#") == 0) in one_opt()
1243 comma = split(arg); in one_opt()
1244 if (!(d = canonicalise_opt(arg))) in one_opt()
1252 if ((arg = split_chr(comma, '/'))) in one_opt()
1256 !atoi_check(arg, &mask)) in one_opt()
1265 else if ((arg = split(comma))) in one_opt()
1268 (new->end.s_addr = inet_addr(arg)) == (in_addr_t)-1) in one_opt()
1285 daemon->username = opt_string_alloc(arg); in one_opt()
1289 daemon->groupname = opt_string_alloc(arg); in one_opt()
1295 daemon->scriptuser = opt_string_alloc(arg); in one_opt()
1302 comma = split(arg); in one_opt()
1307 new->name = opt_string_alloc(arg); in one_opt()
1309 arg = comma; in one_opt()
1310 } while (arg); in one_opt()
1317 comma = split(arg); in one_opt()
1318 new->name = opt_string_alloc(arg); in one_opt()
1329 arg = comma; in one_opt()
1330 } while (arg); in one_opt()
1336 unhide_metas(arg); in one_opt()
1337 if (arg && (addr.s_addr = inet_addr(arg)) != (in_addr_t)-1) in one_opt()
1352 comma = split(arg); in one_opt()
1353 unhide_metas(arg); in one_opt()
1355 if (arg && (new->addr.in.sin_addr.s_addr = inet_addr(arg)) != (in_addr_t)-1) in one_opt()
1363 else if (arg && inet_pton(AF_INET6, arg, &new->addr.in6.sin6_addr) > 0) in one_opt()
1380 arg = comma; in one_opt()
1381 } while (arg); in one_opt()
1390 unhide_metas(arg); in one_opt()
1392 if (arg && *arg == '/') in one_opt()
1395 arg++; in one_opt()
1396 while ((end = split_chr(arg, '/'))) in one_opt()
1400 if (strcmp(arg, "#") == 0) in one_opt()
1402 else if (strlen (arg) != 0 && !(domain = canonicalise_opt(arg))) in one_opt()
1410 arg = end; in one_opt()
1432 if (!arg || !*arg) in one_opt()
1443 if ((source = split_chr(arg, '@')) && /* is there a source. */ in one_opt()
1448 if ((portno = split_chr(arg, '#')) && /* is there a port no. */ in one_opt()
1452 if ((newlist->addr.in.sin_addr.s_addr = inet_addr(arg)) != (in_addr_t) -1) in one_opt()
1477 else if (inet_pton(AF_INET6, arg, &newlist->addr.in6.sin6_addr) > 0) in one_opt()
1524 if (!atoi_check(arg, &size)) in one_opt()
1541 if (!atoi_check16(arg, &daemon->port)) in one_opt()
1546 if (!atoi_check16(arg, &daemon->min_port)) in one_opt()
1551 if (!atoi_check(arg, &daemon->ftabsize)) in one_opt()
1557 if (arg && !atoi_check(arg, &daemon->max_logs)) in one_opt()
1566 if (!atoi_check(arg, &i)) in one_opt()
1573 if (!atoi_check16(arg, &daemon->query_port)) in one_opt()
1585 if (!atoi_check(arg, &ttl)) in one_opt()
1596 if (!atoi_check(arg, &daemon->dhcp_max)) in one_opt()
1603 if (!atoi_check(arg, &daemon->tftp_max)) in one_opt()
1608 daemon->tftp_prefix = opt_string_alloc(arg); in one_opt()
1612 if (!(comma = split(arg)) || in one_opt()
1613 !atoi_check16(arg, &daemon->start_tftp_port) || in one_opt()
1630 if (!(comma = split(arg))) in one_opt()
1636 strncpy(new->iface, arg, IF_NAMESIZE); in one_opt()
1642 arg = comma; in one_opt()
1643 comma = split(arg); in one_opt()
1644 if (strlen(arg) != 0) in one_opt()
1649 strncpy(b->iface, arg, IF_NAMESIZE); in one_opt()
1675 if (!arg) in one_opt()
1683 for (cp = arg; *cp; cp++) in one_opt()
1687 if (*cp != ',' && (comma = split(arg))) in one_opt()
1689 if (strstr(arg, "net:") == arg) in one_opt()
1692 tt->net = opt_string_alloc(arg+4); in one_opt()
1701 new->netid.net = opt_string_alloc(arg); in one_opt()
1703 arg = comma; in one_opt()
1707 a[0] = arg; in one_opt()
1808 if ((a[0] = arg)) in one_opt()
1816 char *arg = a[j]; in one_opt() local
1818 if ((arg[0] == 'i' || arg[0] == 'I') && in one_opt()
1819 (arg[1] == 'd' || arg[1] == 'D') && in one_opt()
1820 arg[2] == ':') in one_opt()
1822 if (arg[3] == '*') in one_opt()
1827 arg += 3; /* dump id: */ in one_opt()
1828 if (strchr(arg, ':')) in one_opt()
1829 len = parse_hex(arg, (unsigned char *)arg, -1, NULL, NULL); in one_opt()
1832 unhide_metas(arg); in one_opt()
1833 len = (int) strlen(arg); in one_opt()
1840 memcpy(new->clid, arg, len); in one_opt()
1844 else if (strstr(arg, "net:") == arg) in one_opt()
1846 int len = strlen(arg + 4) + 1; in one_opt()
1850 strcpy(new->netid.net, arg+4); in one_opt()
1941 problem = parse_dhcp_opt(arg, in one_opt()
1950 while (arg && strstr(arg, "net:") == arg) in one_opt()
1955 comma = split(arg); in one_opt()
1956 newid->net = opt_string_alloc(arg+4); in one_opt()
1957 arg = comma; in one_opt()
1960 if (!arg) in one_opt()
1966 comma = split(arg); in one_opt()
1967 dhcp_file = opt_string_alloc(arg); in one_opt()
1971 arg = comma; in one_opt()
1972 comma = split(arg); in one_opt()
1973 dhcp_sname = opt_string_alloc(arg); in one_opt()
2004 while (arg && strstr(arg, "net:") == arg) in one_opt()
2007 comma = split(arg); in one_opt()
2010 nn->net = opt_string_alloc(arg+4); in one_opt()
2011 arg = comma; in one_opt()
2014 if (!arg) in one_opt()
2018 comma = split(arg); in one_opt()
2019 unhide_metas(arg); in one_opt()
2020 new->len = strlen(arg) + 1; in one_opt()
2022 memcpy(new->val + 1, arg, new->len - 1); in one_opt()
2050 while (arg && strstr(arg, "net:") == arg) in one_opt()
2053 comma = split(arg); in one_opt()
2056 nn->net = opt_string_alloc(arg+4); in one_opt()
2057 arg = comma; in one_opt()
2060 if (arg && (comma = split(arg))) in one_opt()
2063 if (strcasecmp(CSA[i], arg) == 0) in one_opt()
2066 if (CSA[i] || atoi_check(arg, &i)) in one_opt()
2068 arg = comma; in one_opt()
2069 comma = split(arg); in one_opt()
2072 new->menu = opt_string_alloc(arg); in one_opt()
2076 arg = comma; in one_opt()
2077 comma = split(arg); in one_opt()
2078 if (atoi_check(arg, &i)) in one_opt()
2086 new->basename = opt_string_alloc(arg); in one_opt()
2115 if (!(comma = split(arg))) in one_opt()
2120 if (strstr(arg, "net:") == arg) in one_opt()
2121 new->netid.net = opt_string_alloc(arg+4); in one_opt()
2123 new->netid.net = opt_string_alloc(arg); in one_opt()
2138 if (!(comma = split(arg))) in one_opt()
2145 if (strstr(arg, "net:") == arg) in one_opt()
2146 new->netid.net = opt_string_alloc(arg+4); in one_opt()
2148 new->netid.net = opt_string_alloc(arg); in one_opt()
2195 if (!arg) in one_opt()
2202 comma = split(arg); in one_opt()
2203 if (!atoi_check16(arg, &daemon->dhcp_server_port) || in one_opt()
2239 while (arg) { in one_opt()
2241 comma = split(arg); in one_opt()
2244 if (strstr(arg, "net:") == arg) in one_opt()
2245 member->net = opt_string_alloc(arg+4); in one_opt()
2247 member->net = opt_string_alloc(arg); in one_opt()
2248 arg = comma; in one_opt()
2266 if ((a[0] = arg)) in one_opt()
2298 comma = split(arg); in one_opt()
2300 if (!comma || !(domain = canonicalise_opt(arg))) in one_opt()
2318 if (!(comma = split(arg))) in one_opt()
2322 char *alias = canonicalise_opt(arg); in one_opt()
2330 if (hostname_isequal(new->alias, arg)) in one_opt()
2347 comma = split(arg); in one_opt()
2349 if (!(dom = canonicalise_opt(arg)) || in one_opt()
2371 if ((a[0] = arg)) in one_opt()
2404 if ((comma = split(arg))) in one_opt()
2453 if (!(new->name = canonicalise_opt(arg))) in one_opt()
2468 comma = split(arg); in one_opt()
2470 if (!(name = canonicalise_opt(arg))) in one_opt()
2475 arg = comma; in one_opt()
2476 comma = split(arg); in one_opt()
2477 if (!(target = canonicalise_opt(arg)) in one_opt()
2482 arg = comma; in one_opt()
2483 comma = split(arg); in one_opt()
2484 if (!atoi_check16(arg, &port)) in one_opt()
2489 arg = comma; in one_opt()
2490 comma = split(arg); in one_opt()
2491 if (!atoi_check16(arg, &priority)) in one_opt()
2496 arg = comma; in one_opt()
2497 comma = split(arg); in one_opt()
2498 if (!atoi_check16(arg, &weight)) in one_opt()
2536 char *p, *arg, *start, *buff = daemon->namebuff; in one_file() local
2651 arg = buff; in one_file()
2655 arg = p+1; in one_file()
2660 arg = NULL; in one_file()
2678 else if (opts[i].has_arg == 0 && arg) in one_file()
2680 else if (opts[i].has_arg == 1 && !arg) in one_file()
2686 if (arg) in one_file()
2687 for (; isspace((int)*arg); arg++); in one_file()
2689 errmess = one_opt(option, arg, _("error"), nest + 1); in one_file()
2784 char *errmess, *arg, *conffile = CONFFILE; in read_opts() local
2827 arg = buff; in read_opts()
2830 arg = NULL; in read_opts()
2856 conffile = opt_string_alloc(arg); in read_opts()
2862 errmess = one_opt(option, arg, _("try --help"), 0); in read_opts()
2864 errmess = one_opt(option, arg, _("try -w"), 0); in read_opts()