diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-03-04 21:43:00 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-03-06 21:46:38 +0100 |
commit | 19ee83379cf483ab151dd1ad4e36d09483d6a223 (patch) | |
tree | 8f818ae12245130a63aee17c49050062db9aa8db /dhcpv6/types.go | |
parent | 7ea59fc95373dc2c34b2a81c0917618402affe0f (diff) |
dhcpv6: add DHCPv4-over-DHCPv6 support
Add message types, options, and modifier for handling DHCPv4-over-DHCPv6.
Refer to RFC 7341
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Diffstat (limited to 'dhcpv6/types.go')
-rw-r--r-- | dhcpv6/types.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dhcpv6/types.go b/dhcpv6/types.go index 560581c..7c4052f 100644 --- a/dhcpv6/types.go +++ b/dhcpv6/types.go @@ -36,6 +36,10 @@ const ( MessageTypeLeaseQueryReply MessageType = 15 MessageTypeLeaseQueryDone MessageType = 16 MessageTypeLeaseQueryData MessageType = 17 + _ MessageType = 18 + _ MessageType = 19 + MessageTypeDHCPv4Query MessageType = 20 + MessageTypeDHCPv4Response MessageType = 21 ) // String prints the message type name. @@ -66,6 +70,8 @@ var messageTypeToStringMap = map[MessageType]string{ MessageTypeLeaseQueryReply: "LEASEQUERY-REPLY", MessageTypeLeaseQueryDone: "LEASEQUERY-DONE", MessageTypeLeaseQueryData: "LEASEQUERY-DATA", + MessageTypeDHCPv4Query: "DHCPv4-QUERY", + MessageTypeDHCPv4Response: "DHCPv4-RESPONSE", } // OptionCode is a single byte representing the code for a given Option. |