ippool.c (353075) | ippool.c (353076) |
---|---|
1/* $FreeBSD: stable/11/contrib/ipfilter/tools/ippool.c 353075 2019-10-04 01:40:04Z cy $ */ | 1/* $FreeBSD: stable/11/contrib/ipfilter/tools/ippool.c 353076 2019-10-04 01:41:29Z cy $ */ |
2 3/* 4 * Copyright (C) 2012 by Darren Reed. 5 * 6 * See the IPFILTER.LICENCE file for details on licencing. 7 */ 8#include <sys/types.h> 9#include <sys/time.h> --- 58 unchanged lines hidden (view full) --- 68usage(prog) 69 char *prog; 70{ 71 fprintf(stderr, "Usage:\t%s\n", prog); 72 fprintf(stderr, "\t-a [-dnv] [-m <name>] [-o <role>] [-t type] [-T ttl] -i <ipaddr>[/netmask]\n"); 73 fprintf(stderr, "\t-A [-dnv] [-m <name>] [-o <role>] [-S <seed>] [-t <type>]\n"); 74 fprintf(stderr, "\t-f <file> [-dnuv]\n"); 75 fprintf(stderr, "\t-F [-dv] [-o <role>] [-t <type>]\n"); | 2 3/* 4 * Copyright (C) 2012 by Darren Reed. 5 * 6 * See the IPFILTER.LICENCE file for details on licencing. 7 */ 8#include <sys/types.h> 9#include <sys/time.h> --- 58 unchanged lines hidden (view full) --- 68usage(prog) 69 char *prog; 70{ 71 fprintf(stderr, "Usage:\t%s\n", prog); 72 fprintf(stderr, "\t-a [-dnv] [-m <name>] [-o <role>] [-t type] [-T ttl] -i <ipaddr>[/netmask]\n"); 73 fprintf(stderr, "\t-A [-dnv] [-m <name>] [-o <role>] [-S <seed>] [-t <type>]\n"); 74 fprintf(stderr, "\t-f <file> [-dnuv]\n"); 75 fprintf(stderr, "\t-F [-dv] [-o <role>] [-t <type>]\n"); |
76 fprintf(stderr, "\t-l [-dv] [-m <name>] [-t <type>] [-O <fields>]\n"); | 76 fprintf(stderr, "\t-l [-dv] [-m |
77 fprintf(stderr, "\t-r [-dnv] [-m <name>] [-o <role>] [-t type] -i <ipaddr>[/netmask]\n"); 78 fprintf(stderr, "\t-R [-dnv] [-m <name>] [-o <role>] [-t <type>]\n"); 79 fprintf(stderr, "\t-s [-dtv] [-M <core>] [-N <namelist>]\n"); 80 exit(1); 81} 82 83 84int --- 591 unchanged lines hidden (view full) --- 676 break; 677 case 'o' : 678 role = getrole(optarg); 679 if (role == IPL_LOGNONE) { 680 fprintf(stderr, "unknown role '%s'\n", optarg); 681 return -1; 682 } 683 break; | 77 fprintf(stderr, "\t-r [-dnv] [-m <name>] [-o <role>] [-t type] -i <ipaddr>[/netmask]\n"); 78 fprintf(stderr, "\t-R [-dnv] [-m <name>] [-o <role>] [-t <type>]\n"); 79 fprintf(stderr, "\t-s [-dtv] [-M <core>] [-N <namelist>]\n"); 80 exit(1); 81} 82 83 84int --- 591 unchanged lines hidden (view full) --- 676 break; 677 case 'o' : 678 role = getrole(optarg); 679 if (role == IPL_LOGNONE) { 680 fprintf(stderr, "unknown role '%s'\n", optarg); 681 return -1; 682 } 683 break; |
684#if 0 |
|
684 case 'O' : | 685 case 'O' : |
686 /* XXX This option does not work. This function as */ 687 /* XXX used by state and nat can be used to format */ 688 /* XXX output especially useful for scripting. It */ 689 /* XXX is left here with the intention of making */ 690 /* XXX it work for the same purpose at some point. */ |
|
685 pool_fields = parsefields(poolfields, optarg); 686 break; | 691 pool_fields = parsefields(poolfields, optarg); 692 break; |
693#endif |
|
687 case 't' : 688 type = gettype(optarg, NULL); 689 if (type == IPLT_NONE) { 690 fprintf(stderr, "unknown type '%s'\n", optarg); 691 return -1; 692 } 693 break; 694 case 'v' : --- 378 unchanged lines hidden --- | 694 case 't' : 695 type = gettype(optarg, NULL); 696 if (type == IPLT_NONE) { 697 fprintf(stderr, "unknown type '%s'\n", optarg); 698 return -1; 699 } 700 break; 701 case 'v' : --- 378 unchanged lines hidden --- |