summaryrefslogtreecommitdiffstats
path: root/src/tuple_gen.h
diff options
context:
space:
mode:
authorroot <root@crdc-asr1k-trex.cisco.com>2015-10-01 22:58:16 -0400
committerroot <root@crdc-asr1k-trex.cisco.com>2015-10-01 22:58:16 -0400
commite2b63ecc0544c82590c9aeb9a44a8a4bcb869cb6 (patch)
tree64466ca614bbd1a91a8856f4783da4c964bcc664 /src/tuple_gen.h
parent894ec2ddcd9965f60c4bc7a0b48edf41bfc167d8 (diff)
minor change
Diffstat (limited to 'src/tuple_gen.h')
-rwxr-xr-xsrc/tuple_gen.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tuple_gen.h b/src/tuple_gen.h
index 8efa07a4..205014c5 100755
--- a/src/tuple_gen.h
+++ b/src/tuple_gen.h
@@ -632,7 +632,6 @@ private:
class CServerPool : public CServerPoolBase {
public:
- CIpPool *gen;
void GenerateTuple(CTupleBase & tuple) {
uint32_t idx = gen->generate_ip();
tuple.setServerAll(idx, gen->get_ip(idx));
@@ -656,6 +655,8 @@ public:
uint32_t get_total_ips() {
return gen->m_ip_info.size();
}
+private:
+ CIpPool *gen;
};
/* generate for each template */
@@ -712,7 +713,7 @@ public:
public:
CTupleGeneratorSmart(){
m_was_init=false;
- has_mac_mapping = false;
+ m_has_mac_mapping = false;
}
bool Create(uint32_t _id,
uint32_t thread_id, bool has_mac=false);
@@ -763,7 +764,7 @@ private:
std::vector<CClientPool*> m_client_pool;
std::vector<CServerPoolBase*> m_server_pool;
bool m_was_init;
- bool has_mac_mapping;
+ bool m_has_mac_mapping;
};
class CTupleTemplateGeneratorSmart {