aboutsummaryrefslogtreecommitdiffstats
path: root/wg-dynamic-client.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Sleep lessLinus Nordberg2019-04-261-3/+5
| | | | | Only sleep after failed try_connect(), because it might fail quickly. The read should be blocking for 1s (SO_RCVTIMEO).
* Remove more code for non-blocking I/O.Linus Nordberg2019-04-261-22/+3
| | | | | Writes are blocking -- send_message() will simply get all the bytes out.
* Add a comment on the fake lease at startupLinus Nordberg2019-04-261-0/+2
|
* Remove unused codeLinus Nordberg2019-04-261-20/+0
|
* Remove 'naptime'Linus Nordberg2019-04-261-3/+1
|
* Remove 'now'Linus Nordberg2019-04-261-4/+3
| | | | There's no need for a variable for the current time at this point.
* Use blocking I/O in clientLinus Nordberg2019-04-251-90/+50
| | | | Avoiding the unnecessary complexity of non-blocking I/O.
* No need to clear bits in pollfd reventsLinus Nordberg2019-04-241-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."
* Don't declare variables mid blockLinus Nordberg2019-04-241-3/+3
| | | | Also, do name variables slightly better.
* Do advance buffer after (second) short writeLinus Nordberg2019-04-241-2/+5
|
* Implement client sending ip-request and configuring interfaceLinus Nordberg2019-04-081-20/+506
|
* Fix licensing headersThomas Gschwantner2019-01-271-3/+3
|
* Initialize project with scafolding and embeddable-wg-libraryJason A. Donenfeld2019-01-241-0/+40