Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-07-28 | sd-dhcp-server: add forcerenew support | Tom Gundersen | |
2014-07-24 | libsystemd-network: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC where possible | Tom Gundersen | |
The timeouts in the networking library (DHCP lease timeouts and similar) should not be affected by suspend. In the cases where CLOCK_BOOTTIME is not implemented, it is still safe to fallback to CLOCK_MONOTONIC, as the consumers of the library (i.e., networkd) _should_ renew the leases when coming out of suspend. | |||
2014-07-14 | sd-dhcp-server: make gcc happy | Tom Gundersen | |
It complains about optoffset possibly being uninitialized. It is wrong, but let's just initialize it. | |||
2014-06-29 | networkd/sd-dhcp-server: only start dhcp server when necessary | Tom Gundersen | |
2014-06-21 | sd-dhcp-server: change default lease time form 1m to 1h | Tom Gundersen | |
The short lease was useful for testing, but in real-world usage it is pointless to keep leases this short. That said, the cost of lease renewal is really low, so we keep the lease still relatively short at one hour to not get into hard-to-hit problems with lease exhaustion etc. | |||
2014-06-21 | sd-dhcp-server: fix broadcast of DHCP packets | Tom Gundersen | |
The destination IP address should be INADDR_BROADCAST, but was accidentally left as INADDR_ANY. | |||
2014-06-20 | sd-dhcp-server: remove unused cleanup function | Thomas Hindoe Paaboel Andersen | |
Removes _cleanup_dhcp_lease_free_. While the automatic cleanup functions are great to have this one is never used and causes a warning in clang. | |||
2014-06-19 | dhcp-server: simplify dhcp server unref call | Lennart Poettering | |
No need to use HASHMAP_ITERATE when we destruct all entries anyway. | |||
2014-06-18 | sd-dhcp-server: fix a leak | Thomas Hindoe Paaboel Andersen | |
We must use free instead of dhcp_lease_free here to avoid freeing client_id.data. | |||
2014-06-13 | sd-dhcp-server: add RELEASE support | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add dummy DECLINE support | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: track bound leases | Tom Gundersen | |
Make sure we don't hand out the same IP twice. We still don't handle lease expiry. | |||
2014-06-13 | sd-dhcp-server: add support for clients requesting lease lifetime | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add basic NAK support | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add basic REQUEST/ACK support | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add basic DISCOVER/OFFER support | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add support for sending messages | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: add support for setting the server address | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: bind to raw socket for sending | Tom Gundersen | |
We would like to use the UDP socket, but we cannot as we need to specify the MAC address manually. | |||
2014-06-13 | sd-dhcp-server: add basic message parsing | Tom Gundersen | |
Parse the maximum message size the client can accept and the client id, falling back to sane defaults if they are not set. | |||
2014-06-13 | sd-dhcp-server: add basic message handling and verification | Tom Gundersen | |
2014-06-13 | sd-dhcp-server: bind to a given interface | Tom Gundersen | |
We will (at least at first), restrict our focus to running the server on at most one interface. | |||
2014-06-13 | sd-dhcp-server: add basic functionality for starting/stopping server | Tom Gundersen | |
Bind to UDP socket and listen for messages, discarding anything we receive. | |||
2014-06-13 | sd-dhcp-server: add basic functionality for creating/destroying server instance | Tom Gundersen | |