/*-GNU-GPL-BEGIN-* nepim - network pipemeter Copyright (C) 2005 Everton da Silva Marques nepim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. nepim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with nepim; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *-GNU-GPL-END-*/ #ifndef NEPIM_CONF_H #define NEPIM_CONF_H #include #include "usec.h" typedef struct nepim_global_t nepim_global_t; struct nepim_global_t { const char *prog_name; char *hostname; int client_mode; int udp_mode; int simplex_client_send; int duplex_mode; int pipes; long long bit_rate; int pkt_rate; int stat_interval; int test_duration; int tcp_write_size; int tcp_read_size; int udp_write_size; int udp_read_size; const char *portname; int no_inet4; int no_inet6; susec_t write_delay; int listen_backlog; int pmtu_mode; char *bind_list; char *join_list; int ttl; int mcast_ttl; susec_t udp_greet_delay; /* usec */ int max_greetings; susec_t udp_keepalive_timer; /* usec, receivers */ susec_t udp_keepalive_delay; /* usec, non-senders */ int udp_keepalive_require; /* boolean, receivers */ int udp_keepalive_send; /* boolean, non-senders */ int udp_win_max; int win_recv; int win_send; int udp_require_greet_reply; /* boolean, client */ const char *password; int udp_exp_stats; /* boolean */ int udp_exp_loss; int udp_exp_dup; char *tcpwrap; oop_source_sys *oop_sys; oop_source *oop_src; }; extern nepim_global_t nepim_global; #endif /* NEPIM_CONF_H */