Home | History | Annotate | Download | only in ip

Lines Matching defs:argc

197 	int len, argc = *argcp;
262 if (argc == *argcp)
267 *argcp = argc;
273 int iplink_parse(int argc, char **argv, struct iplink_req *req,
284 ret = argc;
286 while (argc > 0) {
391 len = iplink_parse_vf(vf, &argc, &argv, req);
419 argc--; argv++;
425 argc--; argv++;
458 argc--; argv++;
461 return ret - argc;
464 static int iplink_modify(int cmd, unsigned int flags, int argc, char **argv)
483 ret = iplink_parse(argc, argv, &req, &name, &type, &link, &dev, &group);
487 argc -= ret;
495 if (argc) {
563 if (lu && argc) {
568 lu->parse_opt(lu, argc, argv, &req.n))
572 } else if (argc) {
782 static int do_set(int argc, char **argv)
795 while (argc > 0) {
890 argc--; argv++;
943 int do_iplink(int argc, char **argv)
945 if (argc > 0) {
950 argc-1, argv+1);
954 argc-1, argv+1);
958 argc-1, argv+1);
961 argc-1, argv+1);
965 return do_set(argc-1, argv+1);
971 return ipaddr_list_link(argc-1, argv+1);