Lines Matching defs:opt

650 setoption(char *opt) {
651 size_t l = strlen(opt);
654 ((l >= N) && (l < sizeof(A)) && (strncasecmp(opt, A, l) == 0))
658 } else if (strncasecmp(opt, "class=", 6) == 0) {
659 if (testclass(&opt[6]))
660 strlcpy(defclass, &opt[6], sizeof(defclass));
661 } else if (strncasecmp(opt, "cl=", 3) == 0) {
662 if (testclass(&opt[3]))
663 strlcpy(defclass, &opt[3], sizeof(defclass));
664 } else if (strncasecmp(opt, "type=", 5) == 0) {
665 if (testtype(&opt[5])) {
666 strlcpy(deftype, &opt[5], sizeof(deftype));
669 } else if (strncasecmp(opt, "ty=", 3) == 0) {
670 if (testtype(&opt[3])) {
671 strlcpy(deftype, &opt[3], sizeof(deftype));
674 } else if (strncasecmp(opt, "querytype=", 10) == 0) {
675 if (testtype(&opt[10])) {
676 strlcpy(deftype, &opt[10], sizeof(deftype));
679 } else if (strncasecmp(opt, "query=", 6) == 0) {
680 if (testtype(&opt[6])) {
681 strlcpy(deftype, &opt[6], sizeof(deftype));
684 } else if (strncasecmp(opt, "qu=", 3) == 0) {
685 if (testtype(&opt[3])) {
686 strlcpy(deftype, &opt[3], sizeof(deftype));
689 } else if (strncasecmp(opt, "q=", 2) == 0) {
690 if (testtype(&opt[2])) {
691 strlcpy(deftype, &opt[2], sizeof(deftype));
694 } else if (strncasecmp(opt, "domain=", 7) == 0) {
695 strlcpy(domainopt, &opt[7], sizeof(domainopt));
698 } else if (strncasecmp(opt, "do=", 3) == 0) {
699 strlcpy(domainopt, &opt[3], sizeof(domainopt));
702 } else if (strncasecmp(opt, "port=", 5) == 0) {
703 set_port(&opt[5]);
704 } else if (strncasecmp(opt, "po=", 3) == 0) {
705 set_port(&opt[3]);
706 } else if (strncasecmp(opt, "timeout=", 8) == 0) {
707 set_timeout(&opt[8]);
708 } else if (strncasecmp(opt, "t=", 2) == 0) {
709 set_timeout(&opt[2]);
714 } else if (strncasecmp(opt, "retry=", 6) == 0) {
715 set_tries(&opt[6]);
716 } else if (strncasecmp(opt, "ret=", 4) == 0) {
717 set_tries(&opt[4]);
748 } else if (strncasecmp(opt, "ndots=", 6) == 0) {
749 set_ndots(&opt[6]);
751 printf("*** Invalid option: %s\n", opt);
756 addlookup(char *opt) {
783 if (get_reverse(store, sizeof(store), opt, lookup->ip6_int, ISC_TRUE)
789 strlcpy(lookup->textname, opt, sizeof(lookup->textname));