diff options
author | Marcel Moolenaar <mmoolena@amazon.com> | 2021-02-19 10:05:28 -0800 |
---|---|---|
committer | Chris K <c@chrisko.ch> | 2021-03-06 14:40:58 -0800 |
commit | 62c5e6a9631be9fe5122f4a43f937e99df1c208f (patch) | |
tree | a6676fb53e93f0678b306d7b3ed8f3303ae9b3cd /dhcpv4/dhcpv4_test.go | |
parent | cc9239ac62943a78e89ef4880c8ebdd0ca9ae21e (diff) |
Pad packets after the 'end' option to be more conformant
RFC 2131 gives two examples of padding in section 4.1. For both the
examples, the 'end' option preceeds the padding with the 'pad' option.
These examples relate to overloading pre-defined fields for options,
not padding the packet for a minimal size.
Older versions of the U-Boot firmware support DHCP, but do not expect
the 'pad' option. The firmware logs the following warning for each
occurence:
*** Unhandled DHCP Option in OFFER/ACK: 0
This warning disappears when the 'end' option preceeds the 'pad'
option.
Signed-off-by: Marcel Moolenaar <mmoolena@amazon.com>
Diffstat (limited to 'dhcpv4/dhcpv4_test.go')
0 files changed, 0 insertions, 0 deletions