summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6relay.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6relay.go')
-rw-r--r--dhcpv6/dhcpv6relay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go
index 1bde354..221c65e 100644
--- a/dhcpv6/dhcpv6relay.go
+++ b/dhcpv6/dhcpv6relay.go
@@ -173,7 +173,7 @@ func NewRelayReplFromRelayForw(relayForw, msg DHCPv6) (DHCPv6, error) {
if !ok {
return nil, errors.New("Not a DHCPv6Relay")
}
- if relay.Type() != RELAY_FORW {
+ if relay.Type() != MessageTypeRelayForward {
return nil, errors.New("The passed packet is not of type RELAY_FORW")
}
if msg == nil {
@@ -197,7 +197,7 @@ func NewRelayReplFromRelayForw(relayForw, msg DHCPv6) (DHCPv6, error) {
}
}
for i := len(linkAddr) - 1; i >= 0; i-- {
- msg, err = EncapsulateRelay(msg, RELAY_REPL, linkAddr[i], peerAddr[i])
+ msg, err = EncapsulateRelay(msg, MessageTypeRelayReply, linkAddr[i], peerAddr[i])
if opt := optiids[i]; opt != nil {
msg.AddOption(opt)
}