diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-15 09:42:23 +0100 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-15 09:42:23 +0100 |
commit | de987a05eec1b93526f241337b0da5f9c1c10582 (patch) | |
tree | e6520e9bbc7f9f7fdb772a63ea818b93f5fd6cc6 /dhcpv6 | |
parent | 337d948d66828e88fd12e980091dda0e28bf78ba (diff) |
NewRelayReplFromRelayForw
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/dhcpv6relay.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go index 93836c5..070b17b 100644 --- a/dhcpv6/dhcpv6relay.go +++ b/dhcpv6/dhcpv6relay.go @@ -170,14 +170,14 @@ func NewRelayReplFromRelayForw(relayForw, msg DHCPv6) (DHCPv6, error) { optrid []Option ) if relayForw == nil { - return nil, errors.New("RELAY_FORW cannot be nil") + return nil, errors.New("MessageTypeRelayForward cannot be nil") } relay, ok := relayForw.(*DHCPv6Relay) if !ok { return nil, errors.New("Not a DHCPv6Relay") } if relay.Type() != MessageTypeRelayForward { - return nil, errors.New("The passed packet is not of type RELAY_FORW") + return nil, errors.New("The passed packet is not of type MessageTypeRelayForward") } if msg == nil { return nil, errors.New("The passed message cannot be nil") |