diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-03-06 18:28:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 18:28:56 +0000 |
commit | e9ebad02f2f8c0bc7b4feb67bdbeeb10f9e8174e (patch) | |
tree | 0e7e67adebf7285be223a998daef706a94b3cd67 /dhcpv6/types.go | |
parent | eed1649adf6d25016f0551cac65a06102085cc8c (diff) | |
parent | fe4f99d21bfe3872e356e7999f3cd1654ea9d92e (diff) |
Merge pull request #5 from insomniacslk/fix_types
Fixed types in dhcpv4 and dhcpv6
Diffstat (limited to 'dhcpv6/types.go')
-rw-r--r-- | dhcpv6/types.go | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/dhcpv6/types.go b/dhcpv6/types.go index e0ea6f0..bbe4c5b 100644 --- a/dhcpv6/types.go +++ b/dhcpv6/types.go @@ -5,24 +5,23 @@ package dhcpv6 type MessageType uint8 const ( - _ MessageType = iota // skip 0 - SOLICIT - ADVERTISE - REQUEST - CONFIRM - RENEW - REBIND - REPLY - RELEASE - DECLINE - RECONFIGURE - INFORMATION_REQUEST - RELAY_FORW - RELAY_REPL - LEASEQUERY - LEASEQUERY_REPLY - LEASEQUERY_DONE - LEASEQUERY_DATA + SOLICIT MessageType = 1 + ADVERTISE MessageType = 2 + REQUEST MessageType = 3 + CONFIRM MessageType = 4 + RENEW MessageType = 5 + REBIND MessageType = 6 + REPLY MessageType = 7 + RELEASE MessageType = 8 + DECLINE MessageType = 9 + RECONFIGURE MessageType = 10 + INFORMATION_REQUEST MessageType = 11 + RELAY_FORW MessageType = 12 + RELAY_REPL MessageType = 13 + LEASEQUERY MessageType = 14 + LEASEQUERY_REPLY MessageType = 15 + LEASEQUERY_DONE MessageType = 16 + LEASEQUERY_DATA MessageType = 17 ) func MessageTypeToString(t MessageType) string { |