]> git.proxmox.com Git - qemu.git/blobdiff - slirp/bootp.h
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
[qemu.git] / slirp / bootp.h
index e48f53f37aa4358cfdba41e043d32f3d7d348cf4..ec3b68704c30ed1a7a8bde9ff343a7d9cb7dbb06 100644 (file)
@@ -1,4 +1,6 @@
 /* bootp/dhcp defines */
+#ifndef SLIRP_BOOTP_H
+#define SLIRP_BOOTP_H 1
 
 #define BOOTP_SERVER   67
 #define BOOTP_CLIENT   68
@@ -63,6 +65,7 @@
 #define RFC2132_MSG_TYPE       53
 #define RFC2132_SRV_ID         54
 #define RFC2132_PARAM_LIST     55
+#define RFC2132_MESSAGE                56
 #define RFC2132_MAX_SIZE       57
 #define RFC2132_RENEWAL_TIME    58
 #define RFC2132_REBIND_TIME     59
@@ -71,6 +74,7 @@
 #define DHCPOFFER              2
 #define DHCPREQUEST            3
 #define DHCPACK                        5
+#define DHCPNAK                        6
 
 #define RFC1533_VENDOR_MAJOR   0
 #define RFC1533_VENDOR_MINOR   0
@@ -110,4 +114,13 @@ struct bootp_t {
     uint8_t bp_vend[DHCP_OPT_LEN];
 };
 
+typedef struct {
+    uint16_t allocated;
+    uint8_t macaddr[6];
+} BOOTPClient;
+
+#define NB_BOOTP_CLIENTS 16
+
 void bootp_input(struct mbuf *m);
+
+#endif