diff options
author | 2016-01-05 20:15:39 +0200 | |
---|---|---|
committer | 2016-01-05 20:15:39 +0200 | |
commit | 85d536eb822a7663c37658180efe85411f4148e3 (patch) | |
tree | a0d1d0ae92c56e971f3acfb2a929e9824b2ac570 /src | |
parent | 9e16960d1502524ae00df83e3d1c05ddbb2487c7 (diff) |
random 9k works on 10gb nics
Diffstat (limited to 'src')
-rwxr-xr-x | src/common/captureFile.h | 2 | ||||
-rw-r--r-- | src/stateless/cp/trex_stream.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/common/captureFile.h b/src/common/captureFile.h index 9a522d83..16a6120b 100755 --- a/src/common/captureFile.h +++ b/src/common/captureFile.h @@ -35,7 +35,7 @@ typedef enum capture_type { LAST_TYPE } capture_type_e; -#define MAX_PKT_SIZE (9*1024+22) +#define MAX_PKT_SIZE (9*1024+22) /* 9k IP +14+4 FCS +some spare */ #define READER_MAX_PACKET_SIZE MAX_PKT_SIZE diff --git a/src/stateless/cp/trex_stream.h b/src/stateless/cp/trex_stream.h index b4f19111..a164f266 100644 --- a/src/stateless/cp/trex_stream.h +++ b/src/stateless/cp/trex_stream.h @@ -32,6 +32,8 @@ limitations under the License. #include <trex_stream_vm.h> #include <stdio.h> #include <string.h> +#include <common/captureFile.h> + class TrexRpcCmdAddStream; @@ -123,8 +125,8 @@ public: virtual ~TrexStream(); /* defines the min max per packet supported */ - static const uint32_t MIN_PKT_SIZE_BYTES = 1; - static const uint32_t MAX_PKT_SIZE_BYTES = 9000; + static const uint32_t MIN_PKT_SIZE_BYTES = 60; + static const uint32_t MAX_PKT_SIZE_BYTES = MAX_PKT_SIZE; /* provides storage for the stream json*/ void store_stream_json(const Json::Value &stream_json); |