1 /* 2 net_portion.h 3 4 $Id: net_portion.h,v 1.1.1.1 2001/05/15 00:25:00 evertonm Exp $ 5 */ 6 7 #ifndef NET_PORTION_H 8 #define NET_PORTION_H 9 10 #include <stdio.h> 11 #include <sys/types.h> 12 #include <sys/socket.h> 13 #include "addr.h" 14 15 class net_portion 16 { 17 private: 18 struct ip_addr address; 19 short mask_len; 20 21 public: 22 net_portion(struct ip_addr addr, short m_len); 23 24 void show() const; 25 26 int owns(const struct ip_addr *ip) const; 27 }; 28 29 #endif /* NET_PORTION_H */ 30 31 /* Eof: net_portion.h */