diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
commit | 6f4c2968d9a035183d937cb055aec739c05280b1 (patch) | |
tree | 3e3270402258677b8ceb7f0db4c68e2123371d97 /src/iperf_api.h | |
parent | Adding upstream version 3.16. (diff) | |
download | iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.tar.xz iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.zip |
Adding upstream version 3.17.1.upstream/3.17.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/iperf_api.h')
-rw-r--r-- | src/iperf_api.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/iperf_api.h b/src/iperf_api.h index 9e70d44..1313142 100644 --- a/src/iperf_api.h +++ b/src/iperf_api.h @@ -31,9 +31,7 @@ #include <sys/time.h> #include <setjmp.h> #include <stdio.h> -#ifdef HAVE_STDINT_H #include <stdint.h> -#endif #ifdef __cplusplus extern "C" { /* open extern "C" */ #endif @@ -100,7 +98,9 @@ typedef atomic_uint_fast64_t atomic_iperf_size_t; #define OPT_IDLE_TIMEOUT 25 #define OPT_DONT_FRAGMENT 26 #define OPT_RCV_TIMEOUT 27 -#define OPT_SND_TIMEOUT 28 +#define OPT_JSON_STREAM 28 +#define OPT_SND_TIMEOUT 29 +#define OPT_USE_PKCS1_PADDING 30 /* states */ #define TEST_START 1 @@ -151,6 +151,7 @@ char* iperf_get_test_template( struct iperf_test* ipt ); int iperf_get_test_protocol_id( struct iperf_test* ipt ); int iperf_get_test_json_output( struct iperf_test* ipt ); char* iperf_get_test_json_output_string ( struct iperf_test* ipt ); +int iperf_get_test_json_stream( struct iperf_test* ipt ); int iperf_get_test_zerocopy( struct iperf_test* ipt ); int iperf_get_test_get_server_output( struct iperf_test* ipt ); char iperf_get_test_unit_format(struct iperf_test *ipt); @@ -195,6 +196,7 @@ void iperf_set_test_server_hostname( struct iperf_test* ipt, const char* server_ void iperf_set_test_template( struct iperf_test *ipt, const char *tmp_template ); void iperf_set_test_reverse( struct iperf_test* ipt, int reverse ); void iperf_set_test_json_output( struct iperf_test* ipt, int json_output ); +void iperf_set_test_json_stream( struct iperf_test* ipt, int json_stream ); int iperf_has_zerocopy( void ); void iperf_set_test_zerocopy( struct iperf_test* ipt, int zerocopy ); void iperf_set_test_get_server_output( struct iperf_test* ipt, int get_server_output ); |