X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsubnet.h;h=3efed1bea5d82cc3affe771c534ae1d0d2ef2d25;hp=e05c317c6c80afc169db0c8317004ea751802347;hb=73d77dd416b87b7c4e9b6aa450f64846235cd2b4;hpb=df3220a1549f992cbf4a9b6e67c1e67b69896c7d diff --git a/src/subnet.h b/src/subnet.h index e05c317c..3efed1be 100644 --- a/src/subnet.h +++ b/src/subnet.h @@ -1,7 +1,7 @@ /* subnet.h -- header for subnet.c - Copyright (C) 2000-2005 Guus Sliepen , - 2000-2005 Ivo Timmermans + Copyright (C) 2000-2009 Guus Sliepen , + 2000-2005 Ivo Timmermans This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -53,6 +53,7 @@ typedef struct subnet_t { subnet_type_t type; /* subnet type (IPv4? IPv6? MAC? something even weirder?) */ time_t expires; /* expiry time */ + int weight; /* weight (higher value is higher priority) */ /* And now for the actual subnet: */ @@ -82,5 +83,6 @@ extern subnet_t *lookup_subnet_mac(const mac_t *); extern subnet_t *lookup_subnet_ipv4(const ipv4_t *); extern subnet_t *lookup_subnet_ipv6(const ipv6_t *); extern void dump_subnets(void); +extern void subnet_cache_flush(void); #endif /* __TINC_SUBNET_H__ */