summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_relaymsg_test.go
diff options
context:
space:
mode:
authorAnatole Denis <Natolumin@users.noreply.github.com>2019-09-16 20:06:53 +0200
committerPablo Mazzini <pmazzini@gmail.com>2019-09-16 19:06:53 +0100
commit834a63bade8aa8927af8b4c9842f0ad0345289d4 (patch)
tree5d34579eef422919518b0e7a1e53fcef346d79ce /dhcpv6/option_relaymsg_test.go
parentbff32b6395da8a13cbe6e9e7e3a303515ced45b2 (diff)
dhcpv4: Mark all options as requested absent PRL (#315)
In DHCPv4, when the ParameterRequestList option is not present in a request, it should be assumed that the client wants to receive all the options that the server is able to send. This changes the IsOptionRequested method of dhcpv4.DHCPv4 to return true for any request in that situation. The reasoning is based on this wording in [RFC2131ยง3.5](https://tools.ietf.org/html/rfc2131#section-3.5): > Not all clients require initialization of all parameters listed in > Appendix A. Two techniques are used to reduce the number of > parameters transmitted from the server to the client. [...] Second, in > its initial DHCPDISCOVER or DHCPREQUEST message, a client may provide > the server with a list of specific parameters the client is interested > in. Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'dhcpv6/option_relaymsg_test.go')
0 files changed, 0 insertions, 0 deletions