summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/bsdp/bsdp.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-01-10 18:14:28 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-14 23:19:04 +0000
commit84a6137d6c7a6de89e1de7010eb6d003290f89c2 (patch)
treef8bd17a8941fdc646aa9546568ad31aea635b5f4 /dhcpv4/bsdp/bsdp.go
parenta87dfc0a868f7e98cb2099100fd3c18e8c054d62 (diff)
bsdp: simplify version type.
Diffstat (limited to 'dhcpv4/bsdp/bsdp.go')
-rw-r--r--dhcpv4/bsdp/bsdp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/bsdp/bsdp.go b/dhcpv4/bsdp/bsdp.go
index 12f3c06..43adcc9 100644
--- a/dhcpv4/bsdp/bsdp.go
+++ b/dhcpv4/bsdp/bsdp.go
@@ -109,7 +109,7 @@ func NewInformList(hwaddr net.HardwareAddr, localIP net.IP, replyPort uint16) (*
// These are vendor-specific options used to pass along BSDP information.
vendorOpts := []dhcpv4.Option{
&OptMessageType{MessageTypeList},
- &OptVersion{Version1_1},
+ Version1_1,
}
if needsReplyPort(replyPort) {
vendorOpts = append(vendorOpts, &OptReplyPort{replyPort})
@@ -156,7 +156,7 @@ func InformSelectForAck(ack dhcpv4.DHCPv4, replyPort uint16, selectedImage BootI
// Data for OptionSelectedBootImageID
vendorOpts := []dhcpv4.Option{
&OptMessageType{MessageTypeSelect},
- &OptVersion{Version1_1},
+ Version1_1,
&OptSelectedBootImageID{selectedImage.ID},
}