Lines Matching defs:argv
71 int parse_args(int argc, const char** argv, ethtool_options_t* options) {
78 if (strncmp(argv[0], "/dev/", strlen("/dev/"))) {
81 options->device = argv[0];
83 argv++;
86 options->pause_secs = strtol(argv[0], &remainder, 10);
91 argv++;
93 if (!strcmp(argv[0], "promisc")) {
95 argv++;
99 if (!strcmp(argv[0], "on")) {
101 } else if (!strcmp(argv[0], "off")) {
106 } else if (!strcmp(argv[0], "dump")) {
108 argv++;
113 } else if (!strcmp(argv[0], "filter")) {
115 argv++;
120 if (parse_address(addr_ptr, *(argv++))) {
180 int main(int argc, const char** argv) {
183 if (parse_args(argc - 1, argv + 1, &options)) {