summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/dhcpv4.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/dhcpv4.go')
-rw-r--r--dhcpv4/dhcpv4.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go
index 1d8ddef..0bfea48 100644
--- a/dhcpv4/dhcpv4.go
+++ b/dhcpv4/dhcpv4.go
@@ -262,7 +262,11 @@ func NewReplyFromRequest(request *DHCPv4, modifiers ...Modifier) (*DHCPv4, error
return New(PrependModifiers(modifiers,
WithReply(request),
WithGatewayIP(request.GatewayIPAddr),
- WithRelayAgentInfo(request),
+ WithOptionCopied(request, OptionRelayAgentInformation),
+
+ // RFC 6842 states the Client Identifier option must be copied
+ // from the request if a client specified it.
+ WithOptionCopied(request, OptionClientIdentifier),
)...)
}