Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching defs:argv

567 configure_interface(struct interface *ifp, int argc, char **argv,
574 add_options(ifp->ctx, ifp->name, ifp->options, argc, argv);
891 dhcpcd_initstate1(struct interface *ifp, int argc, char **argv,
896 configure_interface(ifp, argc, argv, options);
922 dhcpcd_initstate1(ifp, ifp->ctx->argc, ifp->ctx->argv, options);
946 const char * const argv[] = { ifname };
972 ifs = if_discover(ctx, -1, UNCONST(argv));
1093 if_reboot(struct interface *ifp, int argc, char **argv)
1099 dhcpcd_initstate1(ifp, argc, argv, 0);
1112 add_options(ctx, NULL, ifo, ctx->argc, ctx->argv);
1123 reconf_reboot(struct dhcpcd_ctx *ctx, int action, int argc, char **argv, int oi)
1128 ifs = if_discover(ctx, argc - oi, argv + oi);
1139 if_reboot(ifn, argc, argv);
1145 dhcpcd_initstate1(ifp, argc, argv, 0);
1210 reconf_reboot(ctx, 1, ctx->argc, ctx->argv,
1311 int argc, char **argv)
1323 if (strcmp(*argv, "--version") == 0) {
1326 } else if (strcmp(*argv, "--getconfigfile") == 0) {
1329 } else if (strcmp(*argv, "--getinterfaces") == 0) {
1333 } else if (strcmp(*argv, "--listen") == 0) {
1347 len += strlen(argv[opt]) + 1;
1353 l = strlen(argv[opt]);
1354 strlcpy(p, argv[opt], len);
1364 while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1)
1389 if ((ifp = if_find(ctx->ifaces, argv[oi])) == NULL)
1403 reconf_reboot(ctx, do_reboot, argc, argv, optind);
1432 main(int argc, char **argv)
1456 if (strcmp(argv[1], "--help") == 0) {
1459 } else if (strcmp(argv[1], "--version") == 0) {
1488 while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1)
1541 ctx.argv = argv;
1544 ctx.ifv = argv + optind;
1549 opt = add_options(&ctx, NULL, ifo, argc, argv);
1559 ifo = read_config(&ctx, argv[optind], NULL, NULL);
1562 add_options(&ctx, NULL, ifo, argc, argv);
1614 int intf_len = strlen(argv[optind]);
1615 split_interface_lease(argv[optind], &intf_len, NULL);
1619 argv[optind]);
1622 strlcpy(ifn, argv[optind], intf_len + 1);
1663 ctx.ifaces = if_discover(&ctx, 1, argv + optind);
1675 strlcpy(ctx.pidfile, argv[optind], sizeof(ctx.pidfile));
1685 configure_interface(ifp, ctx.argc, ctx.argv, 0);
1709 i = control_open(&ctx, argv[optind]);
1715 len = control_send(&ctx, argc, argv);
1831 ctx.options & DHCPCD_MASTER ? NULL : argv[optind]) == -1)
1910 dhcpcd_initstate1(ifp, argc, argv, 0);