summaryrefslogtreecommitdiffstats
path: root/src/tuple_gen.h
diff options
context:
space:
mode:
authorroot <root@crdc-asr1k-trex.cisco.com>2015-10-09 14:19:11 -0400
committerroot <root@crdc-asr1k-trex.cisco.com>2015-10-09 14:19:11 -0400
commit0fa1d736246a7efc9aec1e9030a60954649a8d2d (patch)
tree1d63771f1d6193a38761ee17ef08e002a2e8a37c /src/tuple_gen.h
parent31d21b32b4a9d49bb55115fa50cf9dbf4d8b0d3b (diff)
minor change
Diffstat (limited to 'src/tuple_gen.h')
-rwxr-xr-xsrc/tuple_gen.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tuple_gen.h b/src/tuple_gen.h
index 204dda0d..4b181ad5 100755
--- a/src/tuple_gen.h
+++ b/src/tuple_gen.h
@@ -515,6 +515,20 @@ class CIpPool {
class CClientPool : public CIpPool {
public:
+
+ uint32_t GenerateTuple(CTupleBase & tuple) {
+ uint32_t idx = generate_ip();
+ CIpInfoBase* ip_info = m_ip_info[idx];
+ ip_info->generate_tuple(tuple);
+
+ tuple.setClientId(idx);
+ if (tuple.getClientPort()==ILLEGAL_PORT) {
+ m_port_allocation_error++;
+ }
+ m_active_alloc++;
+ return idx;
+ }
+
uint16_t get_tcp_aging() {
return m_tcp_aging;
}
@@ -531,20 +545,6 @@ public:
uint16_t tcp_aging,
uint16_t udp_aging);
- uint32_t GenerateTuple(CTupleBase & tuple) {
- uint32_t idx = generate_ip();
- CIpInfoBase* ip_info = m_ip_info[idx];
- ip_info->generate_tuple(tuple);
-
- tuple.setClientId(idx);
- if (tuple.getClientPort()==ILLEGAL_PORT) {
- m_port_allocation_error++;
- }
- m_active_alloc++;
- return idx;
- }
-
-
public:
uint16_t m_tcp_aging;
uint16_t m_udp_aging;