diff options
| author | Erwan Velu <erwan.velu@free.fr> | 2009-02-25 16:48:47 +0100 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2009-02-25 20:58:45 -0800 |
| commit | 5cb5d32fc19aa554d376ea638b03c62c1b58df03 (patch) | |
| tree | dfea7b200c14b12bac526dcf684dc9f6e94852a8 /com32/include/syslinux | |
| parent | e210e0a9fa67018e67233eba190537002a53b922 (diff) | |
| download | syslinux-5cb5d32fc19aa554d376ea638b03c62c1b58df03.tar.gz | |
hdt: Adding pxe_bootp_t structure
Diffstat (limited to 'com32/include/syslinux')
| -rw-r--r-- | com32/include/syslinux/pxe.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/com32/include/syslinux/pxe.h b/com32/include/syslinux/pxe.h index bb5477fd..31a4041e 100644 --- a/com32/include/syslinux/pxe.h +++ b/com32/include/syslinux/pxe.h @@ -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 |
