Page MenuHome Accel-ppp

DHCP NAK
Closed, ResolvedPublicBUG

Assigned To
Authored By
djan
Apr 28 2020, 15:26
Referenced Files
F283: D-link_28.04.2020_Debag.pcapng
Apr 28 2020, 15:26
F284: dhcpserver_debug.txt
Apr 28 2020, 15:26
Tokens
"Like" token, awarded by r09u3."Like" token, awarded by djan.

Description

There are no 56 option in the DHCP NAK packet, that is, there is no message about the error that occurred according to rfc2131 / rfc2132. There is also mention of the use of 54 option, which is also not in the DHCP NAK packet. As a consequence, SOHO routers of some manufacturers ignore DHCP NAK from accel.

9.9. Message

This option is used by a DHCP server to provide an error message to a
DHCP client in a DHCPNAK message in the event of a failure. A client
may use this option in a DHCPDECLINE message to indicate the why the
client declined the offered parameters.  The message consists of n
octets of NVT ASCII text, which the client may display on an
available output device.

The code for this option is 56 and its minimum length is 1.

 Code   Len     Text
+-----+-----+-----+-----+---
|  56 |  n  |  c1 |  c2 | ...
+-----+-----+-----+-----+---


Details

Protocol
General
Version
e5c2be0ad9d725beaa2f34d1d3ffb66b4abafeac

Event Timeline

Dimka88 changed the task status from Open to In progress.Jan 24 2021, 13:15
Dimka88 added a subscriber: Dimka88.

Added option 56 and 54
https://github.com/accel-ppp/accel-ppp/commit/49ef6cf969f662c44f4be2b82b101273c8c6de71
https://github.com/accel-ppp/accel-ppp/commit/588965eaf3fa90531482c5bcf1c145bce0e9a169

@djan reported that tp-link routers received and processed NAK packet properly
So, this issue already present. Need to find GW from configured gw-ip-addresses and return it.