Lines Matching refs:opt

593 setoption(char *opt) {
594 if (strncasecmp(opt, "all", 4) == 0) {
596 } else if (strncasecmp(opt, "class=", 6) == 0) {
597 if (testclass(&opt[6]))
598 strlcpy(defclass, &opt[6], sizeof(defclass));
599 } else if (strncasecmp(opt, "cl=", 3) == 0) {
600 if (testclass(&opt[3]))
601 strlcpy(defclass, &opt[3], sizeof(defclass));
602 } else if (strncasecmp(opt, "type=", 5) == 0) {
603 if (testtype(&opt[5]))
604 strlcpy(deftype, &opt[5], sizeof(deftype));
605 } else if (strncasecmp(opt, "ty=", 3) == 0) {
606 if (testtype(&opt[3]))
607 strlcpy(deftype, &opt[3], sizeof(deftype));
608 } else if (strncasecmp(opt, "querytype=", 10) == 0) {
609 if (testtype(&opt[10]))
610 strlcpy(deftype, &opt[10], sizeof(deftype));
611 } else if (strncasecmp(opt, "query=", 6) == 0) {
612 if (testtype(&opt[6]))
613 strlcpy(deftype, &opt[6], sizeof(deftype));
614 } else if (strncasecmp(opt, "qu=", 3) == 0) {
615 if (testtype(&opt[3]))
616 strlcpy(deftype, &opt[3], sizeof(deftype));
617 } else if (strncasecmp(opt, "q=", 2) == 0) {
618 if (testtype(&opt[2]))
619 strlcpy(deftype, &opt[2], sizeof(deftype));
620 } else if (strncasecmp(opt, "domain=", 7) == 0) {
621 strlcpy(domainopt, &opt[7], sizeof(domainopt));
624 } else if (strncasecmp(opt, "do=", 3) == 0) {
625 strlcpy(domainopt, &opt[3], sizeof(domainopt));
628 } else if (strncasecmp(opt, "port=", 5) == 0) {
629 set_port(&opt[5]);
630 } else if (strncasecmp(opt, "po=", 3) == 0) {
631 set_port(&opt[3]);
632 } else if (strncasecmp(opt, "timeout=", 8) == 0) {
633 set_timeout(&opt[8]);
634 } else if (strncasecmp(opt, "t=", 2) == 0) {
635 set_timeout(&opt[2]);
636 } else if (strncasecmp(opt, "rec", 3) == 0) {
638 } else if (strncasecmp(opt, "norec", 5) == 0) {
640 } else if (strncasecmp(opt, "retry=", 6) == 0) {
641 set_tries(&opt[6]);
642 } else if (strncasecmp(opt, "ret=", 4) == 0) {
643 set_tries(&opt[4]);
644 } else if (strncasecmp(opt, "def", 3) == 0) {
646 } else if (strncasecmp(opt, "nodef", 5) == 0) {
648 } else if (strncasecmp(opt, "vc", 3) == 0) {
650 } else if (strncasecmp(opt, "novc", 5) == 0) {
652 } else if (strncasecmp(opt, "deb", 3) == 0) {
655 } else if (strncasecmp(opt, "nodeb", 5) == 0) {
658 } else if (strncasecmp(opt, "d2", 2) == 0) {
660 } else if (strncasecmp(opt, "nod2", 4) == 0) {
662 } else if (strncasecmp(opt, "search", 3) == 0) {
664 } else if (strncasecmp(opt, "nosearch", 5) == 0) {
666 } else if (strncasecmp(opt, "sil", 3) == 0) {
668 } else if (strncasecmp(opt, "fail", 3) == 0) {
670 } else if (strncasecmp(opt, "nofail", 3) == 0) {
672 } else if (strncasecmp(opt, "ndots=", 6) == 0) {
673 set_ndots(&opt[6]);
675 printf("*** Invalid option: %s\n", opt);
680 addlookup(char *opt) {
704 if (get_reverse(store, sizeof(store), opt, lookup->ip6_int, ISC_TRUE)
710 strlcpy(lookup->textname, opt, sizeof(lookup->textname));