Tom Gundersen
87322b3aee
sd-dhcp-server: track bound leases
...
Make sure we don't hand out the same IP twice. We still don't
handle lease expiry.
2014-06-13 17:07:19 +02:00
Tom Gundersen
c7d9ffe6d6
sd-dhcp-server: add support for clients requesting lease lifetime
2014-06-13 17:07:19 +02:00
Tom Gundersen
2dead8129f
sd-dhcp-server: add basic REQUEST/ACK support
2014-06-13 17:07:19 +02:00
Tom Gundersen
969b009d94
sd-dhcp-server: add support for sending messages
2014-06-13 17:07:19 +02:00
Tom Gundersen
20af7091de
sd-dhcp-server: add support for setting the server address
2014-06-13 17:07:19 +02:00
Tom Gundersen
8de4a226c7
sd-dhcp-server: bind to raw socket for sending
...
We would like to use the UDP socket, but we cannot as we need to specify
the MAC address manually.
2014-06-13 16:53:13 +02:00
Tom Gundersen
816e2e7af9
sd-dhcp-server: add basic message parsing
...
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 16:53:13 +02:00
Tom Gundersen
be077570f7
sd-dhcp-server: add basic message handling and verification
2014-06-13 16:53:13 +02:00
Tom Gundersen
3a864fe4a8
sd-dhcp-server: bind to a given interface
...
We will (at least at first), restrict our focus to running the server
on at most one interface.
2014-06-13 16:53:13 +02:00
Tom Gundersen
ff734080aa
sd-dhcp-server: add basic functionality for starting/stopping server
...
Bind to UDP socket and listen for messages, discarding anything we receive.
2014-06-13 16:53:13 +02:00
Tom Gundersen
b44cd88210
sd-dhcp-server: add basic functionality for creating/destroying server instance
2014-06-13 16:53:13 +02:00