#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
-#include "common.h"
+#include "stg/common.h"
#include "nrmap_parser.h"
-NRMapParser::NRMapParser()
-{
-}
-
-NRMapParser::~NRMapParser()
-{
-}
-
bool NRMapParser::ReadFile(const std::string & fileName)
{
std::ifstream source(fileName.c_str());
std::string subnet(line.substr(0, pos)); // xxx.xxx.xxx.xxx/yy
-uint32_t ip;
-uint32_t mask;
+uint32_t ip = 0;
+uint32_t mask = 0;
if (ParseNet(subnet, ip, mask))
{