summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-server-internal.h
Commit message (Collapse)AuthorAge
* log: rearrange log function namingLennart Poettering2014-11-27
| | | | | | | | | | - Rename log_meta() → log_internal(), to follow naming scheme of most other log functions that are usually invoked through macros, but never directly. - Rename log_info_object() to log_object_info(), simply because the object should be before any other parameters, to follow OO-style programming style.
* log: add an "error" parameter to all low-level logging calls and intrdouce ↵Lennart Poettering2014-11-27
| | | | | | | | | | | | | | | | | | | | log_error_errno() as log calls that take error numbers This change has two benefits: - The format string %m will now resolve to the specified error (or to errno if the specified error is 0. This allows getting rid of a ton of strerror() invocations, a function that is not thread-safe. - The specified error can be passed to the journal in the ERRNO= field. Now of course, we just need somebody to convert all cases of this: log_error("Something happened: %s", strerror(-r)); into thus: log_error_errno(-r, "Something happened: %m");
* sd-dhcp-server: always send out ROUTER and SUBNET_MASKTom Gundersen2014-08-04
| | | | For now we simply take these values from the server's address.
* sd-dhcp-server: add forcerenew supportTom Gundersen2014-07-28
|
* sd-dhcp-server: track bound leasesTom Gundersen2014-06-13
| | | | | Make sure we don't hand out the same IP twice. We still don't handle lease expiry.
* sd-dhcp-server: add support for clients requesting lease lifetimeTom Gundersen2014-06-13
|
* sd-dhcp-server: add basic REQUEST/ACK supportTom Gundersen2014-06-13
|
* sd-dhcp-server: add support for sending messagesTom Gundersen2014-06-13
|
* sd-dhcp-server: add support for setting the server addressTom Gundersen2014-06-13
|
* sd-dhcp-server: bind to raw socket for sendingTom Gundersen2014-06-13
| | | | | We would like to use the UDP socket, but we cannot as we need to specify the MAC address manually.
* sd-dhcp-server: add basic message parsingTom Gundersen2014-06-13
| | | | | Parse the maximum message size the client can accept and the client id, falling back to sane defaults if they are not set.
* sd-dhcp-server: add basic message handling and verificationTom Gundersen2014-06-13
|
* sd-dhcp-server: bind to a given interfaceTom Gundersen2014-06-13
| | | | | We will (at least at first), restrict our focus to running the server on at most one interface.
* sd-dhcp-server: add basic functionality for starting/stopping serverTom Gundersen2014-06-13
| | | | Bind to UDP socket and listen for messages, discarding anything we receive.
* sd-dhcp-server: add basic functionality for creating/destroying server instanceTom Gundersen2014-06-13