diff options
Diffstat (limited to 'src/tuple_gen.h')
-rwxr-xr-x | src/tuple_gen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tuple_gen.h b/src/tuple_gen.h index 4b181ad5..29adbd69 100755 --- a/src/tuple_gen.h +++ b/src/tuple_gen.h @@ -183,6 +183,7 @@ class CIpInfoBase { void set_ip(uint32_t ip) { m_ip = ip; } + virtual ~CIpInfoBase() {} protected: uint32_t m_ip; }; @@ -409,7 +410,7 @@ class CIpPool { (ip<=ip_back->get_ip())) { return(true); } - printf("invalid ip:%x, min_ip:%x, max_ip:%x, this:%x\n", + printf("invalid ip:%x, min_ip:%x, max_ip:%x, this:%p\n", ip, ip_front->get_ip(), ip_back->get_ip(),this); return(false); |