34 #define DEF_TUPLE "NET,HOST,FULL" 35 #define DEF_TIMES "0,1000,0,1000" 54 #define CONF_INITIALIZER { \ 55 FALSE, 2., 0, 10000, \ 56 "nowhere.foss.jose-marcio.org", "foss.jose-marcio.org", \ 57 "1.1.1.1", "nowhere.foss.jose-marcio.org", \ 58 "nobody@foss.jose-marcio.org", "grey@foss.jose-marcio.org" \ 61 static int do_test(
conf_T * cargs);
63 static void usage(
char *);
82 const char *args =
"hvl:c:rR:U:";
85 while ((c = getopt(argc, argv, args)) != -1) {
110 cargs.
count = atoi(optarg);
125 printf(
"Error ... \n");
155 from =
"nobody@foss.jose-marcio.org";
156 hostname =
"nowhere.foss.jose-marcio.org";
157 to =
"grey@foss.jose-marcio.org";
161 range =
MAX(range, 10);
167 memset(ipbuf, 0,
sizeof (ipbuf));
170 for (n = 0; n < cargs->
count; n++) {
174 bool can_validate =
TRUE;
180 snprintf(ipbuf,
sizeof (ipbuf),
"1.1.%d.%d", (
int ) rind % 255, (
int ) (
random() % 255));
185 snprintf(buf,
sizeof (buf),
"grey-%d@foss.jose-marcio.org", rind);
227 printf(
"Usage : %s options\n" 228 " %s\n" " Compiled on %s\n", arg,
PACKAGE, __DATE__
" " __TIME__);
int remote_grey_check(char *ip, char *from, char *to, char *hostname)
int main(int argc, char **argv)
void zeLog_SetOutput(bool, bool)
#define ZE_MessageInfo(level,...)
int configure(char *, char *, bool)