/
| 3249 | |
| 3250 | /**************************************************************************/ |
| 3251 | int |
| 3252 | iperf_defaults(struct iperf_test *testp) |
| 3253 | { |
| 3254 | struct protocol *tcp, *udp; |
| 3255 | #if defined(HAVE_SCTP_H) |
| 3256 | struct protocol *sctp; |
| 3257 | #endif /* HAVE_SCTP_H */ |
| 3258 | |
| 3259 | testp->omit = OMIT; |
| 3260 | testp->duration = DURATION; |
| 3261 | testp->diskfile_name = (char*) 0; |
| 3262 | testp->affinity = -1; |
| 3263 | testp->server_affinity = -1; |
| 3264 | TAILQ_INIT(&testp->xbind_addrs); |
| 3265 | #if defined(HAVE_CPUSET_SETAFFINITY) |
| 3266 | CPU_ZERO(&testp->cpumask); |
| 3267 | #endif /* HAVE_CPUSET_SETAFFINITY */ |
| 3268 | testp->title = NULL; |
| 3269 | testp->extra_data = NULL; |
| 3270 | testp->congestion = NULL; |
| 3271 | testp->congestion_used = NULL; |
| 3272 | testp->remote_congestion_used = NULL; |
| 3273 | testp->server_port = PORT; |
| 3274 | testp->ctrl_sck = -1; |
| 3275 | testp->listener = -1; |
| 3276 | testp->prot_listener = -1; |
| 3277 | testp->other_side_has_retransmits = 0; |
| 3278 | |
| 3279 | testp->stats_callback = iperf_stats_callback; |
| 3280 | testp->reporter_callback = iperf_reporter_callback; |
| 3281 | |
| 3282 | testp->stats_interval = testp->reporter_interval = 1; |
| 3283 | testp->num_streams = 1; |
| 3284 | |
| 3285 | testp->settings->domain = AF_UNSPEC; |
| 3286 | testp->settings->unit_format = 'a'; |
| 3287 | testp->settings->socket_bufsize = 0; /* use autotuning */ |
| 3288 | testp->settings->blksize = DEFAULT_TCP_BLKSIZE; |
| 3289 | testp->settings->rate = 0; |
| 3290 | testp->settings->bitrate_limit = 0; |
| 3291 | testp->settings->bitrate_limit_interval = 5; |
| 3292 | testp->settings->bitrate_limit_stats_per_interval = 0; |
| 3293 | testp->settings->fqrate = 0; |
| 3294 | testp->settings->pacing_timer = DEFAULT_PACING_TIMER; |
| 3295 | testp->settings->burst = 0; |
| 3296 | /* Always initialize GSO/GRO fields to allow client-server negotiation */ |
| 3297 | testp->settings->gso = 0; /* Disable GSO by default, enabled via --gsro */ |
| 3298 | testp->settings->gso_dg_size = 0; |
| 3299 | testp->settings->gso_bf_size = GSO_BF_MAX_SIZE; |
| 3300 | testp->settings->gro = 0; /* Disable GRO by default, enabled via --gsro */ |
| 3301 | testp->settings->gro_bf_size = GRO_BF_MAX_SIZE; |
| 3302 | testp->settings->mss = 0; |
| 3303 | testp->settings->bytes = 0; |
| 3304 | testp->settings->blocks = 0; |
| 3305 | testp->settings->connect_timeout = -1; |
| 3306 | testp->settings->rcv_timeout.secs = DEFAULT_NO_MSG_RCVD_TIMEOUT / SEC_TO_mS; |
| 3307 | testp->settings->rcv_timeout.usecs = (DEFAULT_NO_MSG_RCVD_TIMEOUT % SEC_TO_mS) * mS_TO_US; |
| 3308 | testp->zerocopy = 0; |
no test coverage detected
searching dependent graphs…