aboutsummaryrefslogtreecommitdiffstats
path: root/lease.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Server side lease handlingLinus Nordberg2019-09-291-32/+179
| | | | | | | Extend when requested, release when being replaced. Separate address families so that one can be granted even when the pool for the other is empty.
* Remove allowed-ips from peers as leases expireLinus Nordberg2019-09-291-1/+19
|
* Fix typo in the previous commits NULL checkLinus Nordberg2019-09-271-1/+1
|
* Fix incorrect use of pubkey ptr in new_lease()Thomas Gschwantner2019-09-101-3/+16
| | | | | | | | | Before this, leases_ht would store the (temporary) pointer to pubkey that's given to new_lease() directly. The memory it's pointing to is overwritten as soon as a new connection comes in however and thus breaking the hashtable. Instead make our own copy of the pubkey and store the pointer to that.
* Fix build issue that occurs on gcc debian 6.3.0-18Thomas Gschwantner2019-08-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CC lease.o In file included from /usr/include/arpa/inet.h:22:0, from lease.c:3: lease.c: In function 'new_lease': lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32' bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6); ^ lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32' bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6); ^ lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32' bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6); ^ lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32' bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6); ^ lease.c: In function 'leases_refresh': lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32' if (!IN6_IS_ADDR_UNSPECIFIED(ipv6)) ^ lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32' if (!IN6_IS_ADDR_UNSPECIFIED(ipv6)) ^ lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32' if (!IN6_IS_ADDR_UNSPECIFIED(ipv6)) ^ lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32' if (!IN6_IS_ADDR_UNSPECIFIED(ipv6)) ^ <builtin>: recipe for target 'lease.o' failed make: *** [lease.o] Error 1
* Initialize pools from routes via netlinkThomas Gschwantner2019-08-171-17/+122
|
* Move counting logic from lease.c to radix-trie.cThomas Gschwantner2019-07-181-64/+41
|
* Implement lease expirationThomas Gschwantner2019-07-181-16/+60
|
* Remove CLOCK_MONOTONIC commentThomas Gschwantner2019-06-141-4/+0
| | | | | | The CLOCK_MONOTONIC change was reverted: https://git.kernel.org/torvalds/c/a3ed0e43
* Implement basic lease managementThomas Gschwantner2019-06-121-0/+210