summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-07-29 18:10:16 -0700
committerSean Karlage <skarlage@fb.com>2018-07-29 18:10:16 -0700
commitb57d4fdd4144e8935756273a4524ee3cd952bd00 (patch)
tree7d565282a64efb927f5caee0c7c7bf0e0bbc8d0f
parent07d7f10958223760dd9c5393f6040b64e5e672b8 (diff)
Fix message type usage in netboot package
-rw-r--r--netboot/netboot.go4
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
}