Lines Matching refs:opt_arg
481 parse_authentication(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_authentication() argument
491 assert(opt_arg != NULL); in parse_authentication()
493 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_authentication()
536 parse_privacy(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_privacy() argument
546 assert(opt_arg != NULL); in parse_privacy()
548 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_privacy()
589 parse_context(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_context() argument
599 assert(opt_arg != NULL); in parse_context()
601 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_context()
631 parse_user_security(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_user_security() argument
643 assert(opt_arg != NULL); in parse_user_security()
645 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_user_security()
703 parse_file(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_file() argument
705 assert(opt_arg != NULL); in parse_file()
707 if (parse_flist(snmptoolctx, opt_arg, NULL, &IsoOrgDod_OID) < 0) in parse_file()
714 parse_include(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_include() argument
731 assert(opt_arg != NULL); in parse_include()
745 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_include()
786 parse_server(char *opt_arg) in parse_server() argument
788 assert(opt_arg != NULL); in parse_server()
790 if (snmp_parse_server(&snmp_client, opt_arg) < 0) in parse_server()
797 parse_timeout(char *opt_arg) in parse_timeout() argument
801 assert(opt_arg != NULL); in parse_timeout()
806 v = strtol(opt_arg, NULL, 10); in parse_timeout()
819 parse_retry(char *opt_arg) in parse_retry() argument
824 assert(opt_arg != NULL); in parse_retry()
829 v = strtoul(opt_arg, NULL, 10); in parse_retry()
842 parse_version(char *opt_arg) in parse_version() argument
847 assert(opt_arg != NULL); in parse_version()
852 v = strtoul(opt_arg, NULL, 10); in parse_version()
880 parse_local_path(char *opt_arg) in parse_local_path() argument
882 assert(opt_arg != NULL); in parse_local_path()
884 if (strlcpy(snmp_client.local_path, opt_arg, in parse_local_path()
886 warnx("Filename too long - %s", opt_arg); in parse_local_path()
893 parse_buflen(char *opt_arg) in parse_buflen() argument
898 assert(opt_arg != NULL); in parse_buflen()
903 size = strtoul(opt_arg, NULL, 10); in parse_buflen()
952 parse_output(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_output() argument
954 assert(opt_arg != NULL); in parse_output()
956 if (strlen(opt_arg) > strlen("verbose")) { in parse_output()
957 warnx( "Invalid output option - %s",opt_arg); in parse_output()
961 if (strncasecmp(opt_arg, "short", strlen(opt_arg)) == 0) in parse_output()
963 else if (strncasecmp(opt_arg, "verbose", strlen(opt_arg)) == 0) in parse_output()
965 else if (strncasecmp(opt_arg,"tabular", strlen(opt_arg)) == 0) in parse_output()
967 else if (strncasecmp(opt_arg, "quiet", strlen(opt_arg)) == 0) in parse_output()
970 warnx( "Invalid output option - %s", opt_arg); in parse_output()