diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-03-06 17:41:42 +0000 |
---|---|---|
committer | Andrea Barberio <insomniac@slackware.it> | 2018-03-06 17:41:42 +0000 |
commit | c7becf01bdb2b1d0ddb829395250db1c0749d92a (patch) | |
tree | c3bd07fd23f12601edfd984ea6847dcccfc6f60c | |
parent | 4d6cbd950505187f803b4f246d796174b811d1ab (diff) |
Fixed types for BSDP too
-rw-r--r-- | dhcpv4/bsdp/types.go | 28 | ||||
-rw-r--r-- | dhcpv6/option_types.go | 2 |
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 |