Lines Matching refs:av

139 fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av, int cblen)
146 while (*av) {
147 if (*av == ',')
148 av++;
149 type = strtoul(av, &av, 0);
150 if (*av != ',' && *av != '\0')
212 fill_ext6hdr( ipfw_insn *cmd, char *av)
215 char *s = av;
220 av = strsep( &s, ",") ;
221 tok = match_token(ext6hdrcodes, av);
322 * fill the addr and mask fields in the instruction as appropriate from av.
337 fill_ip6(ipfw_insn_ip6 *cmd, char *av, int cblen)
348 if (strcmp(av, "any") == 0)
352 if (strcmp(av, "me") == 0) { /* Set the data for "me" opt*/
357 if (strcmp(av, "me6") == 0) { /* Set the data for "me" opt*/
362 if (strncmp(av, "table(", 6) == 0) {
363 char *p = strchr(av + 6, ',');
369 cmd->o.arg1 = strtoul(av + 6, NULL, 0);
378 av = strdup(av);
379 while (av) {
391 if ((p = strpbrk(av, "/,")) ) {
399 if (lookup_host6(av, d) != 0) {
401 errx(EX_DATAERR, "bad address \"%s\"", av);
419 av = p;
429 if (cmd->o.len & F_NOT && av == NULL && len == 0)
437 if (masklen == 128 && av == NULL && len == 0) {
454 free(av);
465 fill_flow6( ipfw_insn_u32 *cmd, char *av, int cblen)
469 char *s = av;
475 av = strsep( &s, ",") ;
476 type = strtoul(av, &av, 0);
477 if (*av != ',' && *av != '\0')
478 errx(EX_DATAERR, "invalid ipv6 flow number %s", av);
480 errx(EX_DATAERR, "flow number out of range %s", av);
490 errx(EX_DATAERR, "invalid ipv6 flow number %s", av);
495 add_srcip6(ipfw_insn *cmd, char *av, int cblen)
498 fill_ip6((ipfw_insn_ip6 *)cmd, av, cblen);
517 add_dstip6(ipfw_insn *cmd, char *av, int cblen)
520 fill_ip6((ipfw_insn_ip6 *)cmd, av, cblen);