From 49117fb0f83872ea94c8f5c778f48dc15fb56d4b Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Wed, 12 Sep 2018 19:40:16 +0100 Subject: NewReplyFromDHCPv6Message: reply to information request --- dhcpv6/dhcpv6message.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dhcpv6/dhcpv6message.go') diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go index 48b82e9..cb17624 100644 --- a/dhcpv6/dhcpv6message.go +++ b/dhcpv6/dhcpv6message.go @@ -201,13 +201,14 @@ func NewRequestFromAdvertise(advertise DHCPv6, modifiers ...Modifier) (DHCPv6, e // NewReplyFromDHCPv6Message creates a new REPLY packet based on a // DHCPv6Message. The function is to be used when generating a reply to -// REQUEST, CONFIRM, RENEW, REBIND and RELEASE packets. +// REQUEST, CONFIRM, RENEW, REBIND, RELEASE and INFORMATION-REQUEST packets. func NewReplyFromDHCPv6Message(message DHCPv6, modifiers ...Modifier) (DHCPv6, error) { if message == nil { return nil, errors.New("DHCPv6Message cannot be nil") } switch message.Type() { - case MessageTypeRequest, MessageTypeConfirm, MessageTypeRenew, MessageTypeRebind, MessageTypeRelease: + case MessageTypeRequest, MessageTypeConfirm, MessageTypeRenew, + MessageTypeRebind, MessageTypeRelease, MessageTypeInformationRequest: default: return nil, errors.New("Cannot create REPLY from the passed message type set") } -- cgit v1.2.3