aboutsummaryrefslogtreecommitdiffstats
path: root/common.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Serialize/deserialize messages into a structThomas Gschwantner2019-12-111-21/+18
| | | | | | Instead of a list of attributes, parse messages into a proper struct to avoid duplicating code in the server/client for handling this list, as well as making parsing nicer in general.
* server: add --leasetime as a commandline optionLinus Nordberg2019-12-111-2/+0
|
* lease: handle allowedips updates and improve APILinus Nordberg2019-12-111-0/+1
|
* Improve error handling and serializationThomas Gschwantner2019-08-201-6/+17
|
* Use epoll() instead of poll()Thomas Gschwantner2019-06-141-2/+3
| | | | | This enables us to later use the timeout parameter of epoll_wait() to timely remove expired leases.
* Implement basic lease managementThomas Gschwantner2019-06-121-11/+4
|
* Implement faked allocations, server sideLinus Nordberg2019-05-261-5/+30
| | | | | | | | | | Reject clients not connecting from an IPv6 address. Reject clients not connecting from the correct port. Fake address allocation. Update allowed-ips with leases handed out. Send response messages. Extend protocol to include lease start and lease time, errno and errmsg. Move common code to common.[ch].
* Match incoming IP with pubkeyThomas Gschwantner2019-02-251-1/+3
|
* Implement key=value parsingThomas Gschwantner2019-02-091-0/+56
|
* Fix licensing headersThomas Gschwantner2019-01-271-2/+2
|
* Implement basic validation and I/O multiplexingThomas Gschwantner2019-01-261-0/+16