diff options
author | 2016-03-24 01:44:36 -0400 | |
---|---|---|
committer | 2016-03-24 01:44:36 -0400 | |
commit | 3e53fc4cc4bcfcd1e13bf3e136462b15eda238de (patch) | |
tree | 999dfdeed6b9183675f57850c3834814f7824ecd | |
parent | 6bdc3bd98fd899f48b792f9d1ae82a313c159450 (diff) |
minor.
-rwxr-xr-x | src/tuple_gen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tuple_gen.cpp b/src/tuple_gen.cpp index 36f70c39..f7326901 100755 --- a/src/tuple_gen.cpp +++ b/src/tuple_gen.cpp @@ -82,9 +82,10 @@ void CClientPool::Create(IP_DIST_t dist_value, m_ip_info.resize(total_ip); } + int skip_cnt=0; if (total_ip > ((l_flow*t_cps/MAX_PORT))) { if (has_mac_map) { - int skip_cnt=0; + skip_cnt=0; for(int idx=0;idx<total_ip;idx++){ mac_addr_align_t *mac_adr = NULL; mac_adr = mac_info->get_mac_addr_by_ip( min_ip+idx); @@ -104,7 +105,7 @@ void CClientPool::Create(IP_DIST_t dist_value, } } else { if (has_mac_map) { - int skip_cnt=0; + skip_cnt=0; for(int idx=0;idx<total_ip;idx++){ mac_addr_align_t *mac_adr = NULL; mac_adr = mac_info->get_mac_addr_by_ip(min_ip+idx); |