summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/types.go')
-rw-r--r--dhcpv4/types.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/dhcpv4/types.go b/dhcpv4/types.go
index e8a71f5..f8d29bd 100644
--- a/dhcpv4/types.go
+++ b/dhcpv4/types.go
@@ -3,6 +3,18 @@ package dhcpv4
// values from http://www.networksorcery.com/enp/protocol/dhcp.htm and
// http://www.networksorcery.com/enp/protocol/bootp/options.htm
+// DHCP message types
+const (
+ MessageTypeDiscover byte = iota + 1
+ MessageTypeOffer
+ MessageTypeRequest
+ MessageTypeDecline
+ MessageTypeAck
+ MessageTypeNak
+ MessageTypeRelease
+ MessageTypeInform
+)
+
// OpcodeType represents a DHCPv4 opcode.
type OpcodeType uint8