Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3e53fc4
)
When <ip, mac> mapping file is invalid, directly force stop TRex with error log.
author
wenxian li
<
[email protected]
>
Thu, 24 Mar 2016 14:21:43 +0000
(10:21 -0400)
committer
wenxian li
<
[email protected]
>
Thu, 24 Mar 2016 14:21:43 +0000
(10:21 -0400)
src/tuple_gen.cpp
patch
|
blob
|
history
diff --git
a/src/tuple_gen.cpp
b/src/tuple_gen.cpp
index
f732690
..
d221a4d
100755
(executable)
--- a/
src/tuple_gen.cpp
+++ b/
src/tuple_gen.cpp
@@
-77,9
+77,8
@@
void CClientPool::Create(IP_DIST_t dist_value,
if (avail_ip!=0) {
m_ip_info.resize(avail_ip);
} else {
- printf("\n Error, empty mac file is configured.\n"
- "Will ignore the mac file configuration.\n");
- m_ip_info.resize(total_ip);
+ printf("\n Error, invalid mac file is configured.\n");
+ assert(0);
}
int skip_cnt=0;