Lines Matching defs:type

81 	fprintf(stderr, "\t-a [-dnv] [-m <name>] [-o <role>] [-t type] [-T ttl] -i <ipaddr>[/netmask]\n");
82 fprintf(stderr, "\t-A [-dnv] [-m <name>] [-o <role>] [-S <seed>] [-t <type>]\n");
84 fprintf(stderr, "\t-F [-dv] [-o <role>] [-t <type>]\n");
85 fprintf(stderr, "\t-l [-dv] [-m <name>] [-t <type>] [-O <fields>]\n");
86 fprintf(stderr, "\t-r [-dnv] [-m <name>] [-o <role>] [-t type] -i <ipaddr>[/netmask]\n");
87 fprintf(stderr, "\t-R [-dnv] [-m <name>] [-o <role>] [-t <type>]\n");
152 int err = 0, c, ipset, role, type = IPLT_POOL, ttl = 0;
171 if (setnodeaddr(type, role, ptr, optarg) == 0)
196 "cannot set type after ip address\n");
199 type = gettype(optarg, NULL);
200 switch (type) {
202 fprintf(stderr, "unknown type '%s'\n", optarg);
225 if (setnodeaddr(type, role, ptr, argv[optind]) == 0)
242 switch (type) {
267 int type, role, c, err;
274 type = 0;
319 type = gettype(argv[optind], &iph.iph_type);
320 if (type == IPLT_NONE) {
321 fprintf(stderr, "unknown type '%s'\n", argv[optind]);
325 if (type == IPLT_HASH) {
329 } else if (type == IPLT_POOL) {
336 switch (type)
346 switch (type)
412 int c, type, role, live_kernel;
422 type = IPLT_ALL;
449 type = gettype(optarg, NULL);
450 if (type != IPLT_POOL) {
452 "-s not supported for this type yet\n");
472 if (type == IPLT_ALL || type == IPLT_POOL) {
487 if (type == IPLT_ALL || type == IPLT_HASH) {
504 if (type == IPLT_ALL || type == IPLT_DSTLIST) {
535 int c, role, type, arg;
539 type = IPLT_ALL;
556 type = gettype(optarg, NULL);
557 if (type == IPLT_NONE) {
558 fprintf(stderr, "unknown type '%s'\n", optarg);
579 flush.iplf_type = type;
634 int type;
637 type = IPLT_POOL;
639 type = IPLT_HASH;
643 type = IPLT_HASH;
647 type = IPLT_NONE;
649 return type;
659 int c, role, type, live_kernel;
665 type = IPLT_ALL;
700 type = gettype(optarg, NULL);
701 if (type == IPLT_NONE) {
702 fprintf(stderr, "unknown type '%s'\n", optarg);
730 poollist_live(role, poolname, type, fd);
732 poollist_dead(role, poolname, type, kernel, core);
738 poollist_dead(role, poolname, type, kernel, core)
739 int role, type;
748 if (type == IPLT_ALL || type == IPLT_POOL) {
777 if (type == IPLT_ALL || type == IPLT_HASH) {
809 poollist_live(role, poolname, type, fd)
810 int role, type, fd;
817 if (type == IPLT_ALL || type == IPLT_POOL) {
851 if (type == IPLT_ALL || type == IPLT_HASH) {
885 if (type == IPLT_ALL || type == IPLT_DSTLIST) {
1033 setnodeaddr(int type, int role, void *ptr, char *arg)
1050 if (type == IPLT_POOL) {
1066 } else if (type == IPLT_HASH) {