mirror of https://github.com/D4-project/d4-core
test version
parent
fc39325368
commit
4582aed7ed
|
@ -34,7 +34,7 @@ int d4_check_config(d4_t* d4)
|
||||||
|
|
||||||
printf("TEST snaplen %d stdin %d stdout %d\n", d4->snaplen, STDIN_FILENO, STDOUT_FILENO);
|
printf("TEST snaplen %d stdin %d stdout %d\n", d4->snaplen, STDIN_FILENO, STDOUT_FILENO);
|
||||||
//FIXME Check other parameters
|
//FIXME Check other parameters
|
||||||
if (( d4->destination.fd > 0 ) && ( d4->snaplen >0 )) {
|
if ((atoi(d4->conf[VERSION])>0) && ( d4->destination.fd > 0 ) && ( d4->snaplen >0 )) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue