aboutsummaryrefslogtreecommitdiffstats
path: root/wg-dynamic-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement lease expirationThomas Gschwantner2019-07-181-1/+0
|
* Use epoll() instead of poll()Thomas Gschwantner2019-06-141-9/+2
| | | | | This enables us to later use the timeout parameter of epoll_wait() to timely remove expired leases.
* Implement basic lease managementThomas Gschwantner2019-06-121-22/+28
|
* Sleep lessLinus Nordberg2019-05-261-3/+5
| | | | | Only sleep after failed try_connect(), because it might fail quickly. The read should be blocking for 1s (SO_RCVTIMEO).
* Use blocking I/O in clientLinus Nordberg2019-05-261-119/+39
| | | | Avoiding the unnecessary complexity of non-blocking I/O.
* No need to clear bits in pollfd reventsLinus Nordberg2019-05-261-2/+0
| | | | | | | | POSIX says: "In each pollfd structure, poll() shall clear the revents member, except that where the application requested a report on a condition by setting one of the bits of events listed above, poll() shall set the corresponding bit in revents if the requested condition is true."
* Implement client sending ip-request and configuring interfaceLinus Nordberg2019-05-261-20/+509
|
* Fix licensing headersThomas Gschwantner2019-01-271-3/+3
|
* Initialize project with scafolding and embeddable-wg-libraryJason A. Donenfeld2019-01-241-0/+40