diff packages/redboot/current/include/net/bootp.h @ 1412:7423c71e5c19

Improve scanning for DHCP options - from David Vrabel
author gthomas
date Mon, 01 Dec 2003 18:33:38 +0000
parents 38dad94e75ce
children 74dbf4c3f2e1
line wrap: on
line diff
--- a/packages/redboot/current/include/net/bootp.h
+++ b/packages/redboot/current/include/net/bootp.h
@@ -284,6 +284,14 @@ typedef struct bootp {
 
 /* XXX - Add new tags here */
 
+/* DHCP Message Types */
+#define DHCP_MESS_TYPE_DISCOVER  ((unsigned char) 1)
+#define DHCP_MESS_TYPE_OFFER     ((unsigned char) 2)
+#define DHCP_MESS_TYPE_REQUEST   ((unsigned char) 3)
+#define DHCP_MESS_TYPE_DECLINE   ((unsigned char) 4)
+#define DHCP_MESS_TYPE_ACK       ((unsigned char) 5)
+#define DHCP_MESS_TYPE_NAK       ((unsigned char) 6)
+#define DHCP_MESS_TYPE_RELEASE   ((unsigned char) 7)
 
 /*
  * "vendor" data permitted for CMU bootp clients.