summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dhcpv4/bsdp/types.go28
-rw-r--r--dhcpv6/option_types.go2
2 files changed, 14 insertions, 16 deletions
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
diff --git a/dhcpv6/option_types.go b/dhcpv6/option_types.go
index d3b9d7f..238b442 100644
--- a/dhcpv6/option_types.go
+++ b/dhcpv6/option_types.go
@@ -11,7 +11,6 @@ const (
OPTION_PREFERENCE OptionCode = 7
OPTION_ELAPSED_TIME OptionCode = 8
OPTION_RELAY_MSG OptionCode = 9
- _ // skip 10
OPTION_AUTH OptionCode = 11
OPTION_UNICAST OptionCode = 12
OPTION_STATUS_CODE OptionCode = 13
@@ -36,7 +35,6 @@ const (
INFORMATION_REFRESH_TIME OptionCode = 32
BCMCS_CONTROLLER_DOMAIN_NAME_LIST OptionCode = 33
BCMCS_CONTROLLER_IPV6_ADDRESS_LIST OptionCode = 34
- _ // skip 35
OPTION_GEOCONF_CIVIC OptionCode = 36
OPTION_REMOTE_ID OptionCode = 37
RELAY_AGENT_SUBSCRIBER_ID OptionCode = 38