X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fsubnet.h;h=6d7c75995a9ac5f73a4fcc90bd3e58433093c012;hp=c50ac6c8577c4cb0f5a0bbe8417b13dfde6d214d;hb=5674bba5c54c1aee3a4ac5b3aba6b3ebded91bbc;hpb=76a1bcaffcf1f1abf81fdda379b703a004640cb4 diff --git a/src/subnet.h b/src/subnet.h index c50ac6c..6d7c759 100644 --- a/src/subnet.h +++ b/src/subnet.h @@ -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__ */