aboutsummaryrefslogtreecommitdiffstats
path: root/lease.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* WIPln/filter-routesLinus Nordberg2019-10-171-5/+25
|
* Merge branch 'ln/devel' into HEADLinus Nordberg2019-10-161-70/+284
|\
| * Server lease handling.Linus Nordberg2019-10-101-67/+281
| |
* | radix-trie: allow full use of the v4 address spaceThomas Gschwantner2019-09-291-1/+1
| |
* | Rename struct ip_pool to be more descriptiveThomas Gschwantner2019-09-281-22/+22
| |
* | Fix random_bounded() to always be in [0, bound)Thomas Gschwantner2019-09-281-4/+4
|/ | | | | Previously random_bounded(1) would return values in [0, 1], while values > 1 would return [0, bound).
* 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