Only purge once when there are no more connections.
[tinc] / src / subnet.h
index 04e5c28..be20315 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: subnet.h,v 1.1.2.16 2002/02/18 16:25:19 guus Exp $
+    $Id: subnet.h,v 1.1.2.18 2002/04/09 11:42:48 guus Exp $
 */
 
 #ifndef __TINC_SUBNET_H__
@@ -36,18 +36,19 @@ enum
 typedef struct subnet_mac_t
 {
   mac_t address;
+  time_t lastseen;
 } subnet_mac_t;
 
 typedef struct subnet_ipv4_t
 {
   ipv4_t address;
-  int masklength;
+  int prefixlength;
 } subnet_ipv4_t;
 
 typedef struct subnet_ipv6_t
 {
   ipv6_t address;
-  int masklength;
+  int prefixlength;
 } subnet_ipv6_t;
 
 #include "node.h"