networkd: start a DBus interface for the DHCP server
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 22 May 2020 09:49:16 +0000 (11:49 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 4 Jun 2020 09:16:15 +0000 (11:16 +0200)
commit38ee31a6e4ceb0381ed838340929aae2b5634c3e
tree0852d754330a410d45755fbf3f8c0219d5f2e4fb
parent36d35f2259cb75f04d1a3abd10a592fd8303af09
networkd: start a DBus interface for the DHCP server

Add a "org.freedesktop.network1.DHCPServer" DBus interface that will be
added on a link path where a DHCP server is provided.

Currently, it only exposes a "Leases" property, although there are plans
to expand it further. The property is updated thanks to the
dhcp_server_callback().
src/network/meson.build
src/network/networkd-dhcp-server-bus.c [new file with mode: 0644]
src/network/networkd-dhcp-server-bus.h [new file with mode: 0644]