From 05e40b5b6f41c3691e0e0b7a8ea6d99ad80056d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Tue, 29 Nov 2011 18:09:19 +0100 Subject: [PATCH] Feature #602: Small bugfixes --- include/Leases.h | 2 +- src/vnm/RangedLeases.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Leases.h b/include/Leases.h index bb8453e53b..74a04d7928 100644 --- a/include/Leases.h +++ b/include/Leases.h @@ -42,7 +42,7 @@ public: */ Leases(SqlDB * _db, int _oid, unsigned long _size, unsigned int _mac_prefix): ObjectSQL(), - oid(_oid), size(_size), n_used(0), db(_db){}; + oid(_oid), size(_size), n_used(0), mac_prefix(_mac_prefix), db(_db){}; virtual ~Leases() { diff --git a/src/vnm/RangedLeases.cc b/src/vnm/RangedLeases.cc index 84c1bddaf0..d992ad29c0 100644 --- a/src/vnm/RangedLeases.cc +++ b/src/vnm/RangedLeases.cc @@ -176,7 +176,7 @@ int RangedLeases::process_template(VirtualNetwork* vn, vn->remove_template_attribute("NETWORK_SIZE"); // Set the network mask - net_mask = ( 0xFFFFFFFF << host_bits ) & 0xFFFFFFFF; + net_mask = 0xFFFFFFFF << host_bits; Lease::ip_to_string(net_mask, st_mask); vn->replace_template_attribute("NETWORK_MASK", st_mask);