1
1

Reduce the default UDP send size to 1452 to avoid IP fragmentation

with default parameters.

A UDP payload of 1452, plus an 8-byte UDP header, plus a 40-byte IPv6
header, results in a 1500 byte IP packet.  The IPv4 header is smaller
at 20 bytes.
Этот коммит содержится в:
Bruce A. Mah 2016-12-05 14:00:15 -08:00
родитель 1fa41308fe
Коммит f1e62c8d48
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A

Просмотреть файл

@ -39,7 +39,7 @@ struct iperf_stream;
#define Ptcp SOCK_STREAM
#define Pudp SOCK_DGRAM
#define Psctp 12
#define DEFAULT_UDP_BLKSIZE 8192
#define DEFAULT_UDP_BLKSIZE 1452
#define DEFAULT_TCP_BLKSIZE (128 * 1024) /* default read/write block size */
#define DEFAULT_SCTP_BLKSIZE (64 * 1024)