[systemd-devel] [PATCH 15/17] sd-dhcp-server: add dummy DECLINE support
Tom Gundersen
teg at jklm.no
Mon May 26 12:39:44 PDT 2014
---
src/libsystemd-network/sd-dhcp-server.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index 44ca645..3ed93d8 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -623,6 +623,15 @@ int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message,
break;
}
+ case DHCP_DECLINE:
+ log_dhcp_server(server, "DECLINE (0x%x)",
+ be32toh(req->message->xid));
+
+ /* TODO: make sure we don't offer this address again */
+
+ return 1;
+
+ break;
case DHCP_REQUEST:
{
be32_t address;
--
1.9.0
More information about the systemd-devel
mailing list