diff options
author | Sean Karlage <skarlage@fb.com> | 2018-07-29 18:10:16 -0700 |
---|---|---|
committer | Sean Karlage <skarlage@fb.com> | 2018-07-29 18:10:16 -0700 |
commit | b57d4fdd4144e8935756273a4524ee3cd952bd00 (patch) | |
tree | 7d565282a64efb927f5caee0c7c7bf0e0bbc8d0f | |
parent | 07d7f10958223760dd9c5393f6040b64e5e672b8 (diff) |
Fix message type usage in netboot package
-rw-r--r-- | netboot/netboot.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netboot/netboot.go b/netboot/netboot.go index 97a3240..643c5ec 100644 --- a/netboot/netboot.go +++ b/netboot/netboot.go @@ -50,7 +50,7 @@ func ConversationToNetconf(conversation []dhcpv6.DHCPv6) (*NetConf, string, erro var reply dhcpv6.DHCPv6 for _, m := range conversation { // look for a REPLY - if m.Type() == dhcpv6.REPLY { + if m.Type() == dhcpv6.MessageTypeReply { reply = m break } @@ -74,7 +74,7 @@ func ConversationToNetconf(conversation []dhcpv6.DHCPv6) (*NetConf, string, erro var advertise dhcpv6.DHCPv6 for _, m := range conversation { // look for an ADVERTISE - if m.Type() == dhcpv6.ADVERTISE { + if m.Type() == dhcpv6.MessageTypeAdvertise { advertise = m break } |