hdt: Adding pxe_bootp_t structure
authorErwan Velu <erwan.velu@free.fr>
Wed, 25 Feb 2009 15:48:47 +0000 (16:48 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 26 Feb 2009 04:58:45 +0000 (20:58 -0800)
com32/include/syslinux/pxe.h

index bb5477f..31a4041 100644 (file)
@@ -62,6 +62,38 @@ typedef struct {
   uint16_t seg;
 } segoff16_t;
 
+typedef struct {
+uint8_t opcode;
+#define BOOTP_REQ 1
+#define BOOTP_REP 2
+uint8_t Hardware;
+uint8_t Hardlen;
+uint8_t Gatehops;
+uint32_t ident;
+uint16_t seconds;
+uint16_t Flags;
+#define BOOTP_BCAST 0x8000
+in_addr_t cip; /* Client IP address*/
+in_addr_t yip; /* You IP address*/
+in_addr_t sip; /* next server IP address*/
+in_addr_t gip; /*relay agent IP address */
+mac_addr_t CAddr;
+uint8_t Sname[64];
+uint8_t bootfile[128];
+union
+  {
+    #define BOOTP_DHCPVEND 1024
+    uint8_t d[BOOTP_DHCPVEND];
+    struct {
+      uint8_t magic[4];
+      #define VM_RFC1048 0x63825363L
+      uint32_t flags;
+      uint8_t pad[56];
+    } v;
+  } vendor;
+} __packed pxe_bootp_t;
+
+
 /* Function calling structures and constants */
 
 typedef struct s_PXENV_GET_CACHED_INFO