diff options
author | 2015-09-21 18:55:15 +0300 | |
---|---|---|
committer | 2015-09-21 18:55:15 +0300 | |
commit | 14006b519bfd679227a87d0e6a2be9726774aafc (patch) | |
tree | 88b8eed17c52d3460291248cfd807a19c592ea3b /src/common/pcap.cpp | |
parent | d9e1cc14540431aa8baf8480625aa54c2a7c7175 (diff) | |
parent | dbeb7ecc059bb78db54ec285a4216a661bbedd23 (diff) |
Merge branch 'master' into rpc
Conflicts:
scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py
Diffstat (limited to 'src/common/pcap.cpp')
-rwxr-xr-x | src/common/pcap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/pcap.cpp b/src/common/pcap.cpp index 6dd54514..9b360a3e 100755 --- a/src/common/pcap.cpp +++ b/src/common/pcap.cpp @@ -156,7 +156,8 @@ bool LibPCapReader::ReadPacket(CCapPktRaw *lpPacket) } if (pkt_header.len > READER_MAX_PACKET_SIZE) { /* cannot read this packet */ - assert(0); + printf("ERROR packet is too big, bigger than %d \n",READER_MAX_PACKET_SIZE); + exit(-1); return false; } |