1
0

nmap.h 375 B

123456789101112131415161718
  1. #ifndef HV_NMAP_H_
  2. #define HV_NMAP_H_
  3. #include <map>
  4. // addr => 0:down 1:up
  5. typedef std::map<uint32_t, int> Nmap;
  6. // ip = segment + host
  7. // segment16: 192.168.x.x
  8. // segment24: 192.168.1.x
  9. // @return up_cnt
  10. int nmap_discover(Nmap* nmap);
  11. int segment_discover(const char* segment16, Nmap* nmap);
  12. int host_discover(const char* segment24, Nmap* nmap);
  13. #endif // HV_NMAP_H_