diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-26 15:06:42 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-13 17:07:20 +0200 |
commit | 5b34277c2015e32e51d10cfa076df2c7106b4537 (patch) | |
tree | efb3941fda54addc22f91e2502c2c6846c19d396 /src | |
parent | 87322b3aee0dc649ff1ae7a403dcc9d7305baba2 (diff) |
sd-dhcp-server: add dummy DECLINE support
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 4a06833875..cb014e2dfc 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; |