| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
The link-local IP is always /128, so using a hashtable is more
appropriate here. We only use the lower 64 bits as key, since the first
64 bits of link-local addresses are always the same.
|
|
Only sleep after failed try_connect(), because it might fail quickly.
The read should be blocking for 1s (SO_RCVTIMEO).
|
|
Avoiding the unnecessary complexity of non-blocking I/O.
|
|
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."
|
|
|
|
|
|
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].
|
|
Without scope id, ping6 on a Debian 9 fails with
connect: Invalid argument
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|