From c7becf01bdb2b1d0ddb829395250db1c0749d92a Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Tue, 6 Mar 2018 17:41:42 +0000 Subject: Fixed types for BSDP too --- dhcpv4/bsdp/types.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'dhcpv4') diff --git a/dhcpv4/bsdp/types.go b/dhcpv4/bsdp/types.go index 54f38e2..d640188 100644 --- a/dhcpv4/bsdp/types.go +++ b/dhcpv4/bsdp/types.go @@ -4,20 +4,20 @@ import "github.com/insomniacslk/dhcp/dhcpv4" // Options (occur as sub-options of DHCP option 43). const ( - OptionMessageType dhcpv4.OptionCode = iota + 1 - OptionVersion - OptionServerIdentifier - OptionServerPriority - OptionReplyPort - OptionBootImageListPath // Not used - OptionDefaultBootImageID - OptionSelectedBootImageID - OptionBootImageList - OptionNetboot1_0Firmware - OptionBootImageAttributesFilterList - OptionShadowMountPath dhcpv4.OptionCode = 128 - OptionShadowFilePath dhcpv4.OptionCode = 129 - OptionMachineName dhcpv4.OptionCode = 130 + OptionMessageType dhcpv4.OptionCode = 1 + OptionVersion dhcpv4.OptionCode = 2 + OptionServerIdentifier dhcpv4.OptionCode = 3 + OptionServerPriority dhcpv4.OptionCode = 4 + OptionReplyPort dhcpv4.OptionCode = 5 + OptionBootImageListPath dhcpv4.OptionCode = 6 // Not used + OptionDefaultBootImageID dhcpv4.OptionCode = 7 + OptionSelectedBootImageID dhcpv4.OptionCode = 8 + OptionBootImageList dhcpv4.OptionCode = 9 + OptionNetboot1_0Firmware dhcpv4.OptionCode = 10 + OptionBootImageAttributesFilterList dhcpv4.OptionCode = 11 + OptionShadowMountPath dhcpv4.OptionCode = 128 + OptionShadowFilePath dhcpv4.OptionCode = 129 + OptionMachineName dhcpv4.OptionCode = 130 ) // Versions -- cgit v1.2.3