chiark / gitweb /
dhcp: Properly handle unsuccessful cases for DHCP Ack
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 17 Dec 2013 15:24:16 +0000 (16:24 +0100)
committerTom Gundersen <teg@jklm.no>
Tue, 17 Dec 2013 15:24:16 +0000 (16:24 +0100)
commit97b9372db178baadb121634fb4ae12bda8969cfe
tree02635e9fdef9eb434e591363daccb12e69b38aa8
parent187dc6e554f2d5b4b5a3bee72c73ff5df6418aa6
dhcp: Properly handle unsuccessful cases for DHCP Ack

Ignore DHCP Ack packets if they are found to be erroneous or have
an unexpected xid by setting the result to zero instead of propagating
an error. Also remember to report a DHCP Nak and stop the DHCP client.
src/libsystemd-dhcp/dhcp-client.c