File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 67
67
#include "queue.h"
68
68
#include "cjson.h"
69
69
#include "iperf_time.h"
70
+ #include "portable_endian.h"
70
71
71
72
#if defined(HAVE_SSL )
72
73
#include <openssl/bio.h>
@@ -453,9 +454,16 @@ struct iperf_test
453
454
extern int gerror ; /* error value from getaddrinfo(3), for use in internal error handling */
454
455
455
456
/* UDP "connect" message and reply (textual value for Wireshark, etc. readability - legacy was numeric) */
457
+
458
+ #if BYTE_ORDER == BIG_ENDIAN
459
+ #define UDP_CONNECT_MSG 0x39383736
460
+ #define UDP_CONNECT_REPLY 0x36373839
461
+ #define LEGACY_UDP_CONNECT_REPLY 0xb168de3a
462
+ #else
456
463
#define UDP_CONNECT_MSG 0x36373839 // "6789" - legacy value was 123456789
457
464
#define UDP_CONNECT_REPLY 0x39383736 // "9876" - legacy value was 987654321
458
465
#define LEGACY_UDP_CONNECT_REPLY 987654321 // Old servers may still reply with the legacy value
466
+ #endif
459
467
460
468
/* In Reverse mode, maximum number of packets to wait for "accept" response - to handle out of order packets */
461
469
#define MAX_REVERSE_OUT_OF_ORDER_PACKETS 2
Original file line number Diff line number Diff line change 47
47
#include "timer.h"
48
48
#include "net.h"
49
49
#include "cjson.h"
50
- #include "portable_endian.h"
51
50
52
51
#if defined(HAVE_INTTYPES_H )
53
52
# include <inttypes.h>
You can’t perform that action at this time.
0 commit comments