summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2012-02-03 23:14:04 -0500
committerGene Cumm <gene.cumm@gmail.com>2012-02-03 23:14:04 -0500
commitbd71f69ea0aa1e50f4bd4accc9f63be6f0d69cbb (patch)
tree7a5d636559d731838b52db9aad0d743b2721cb92 /com32
parentdc83e35c13e031d23b614ccd30f16ee78223a267 (diff)
downloadsyslinux-bd71f69ea0aa1e50f4bd4accc9f63be6f0d69cbb.tar.gz
prdhcp.c32: Fix what is retrieved.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/modules/prdhcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/modules/prdhcp.c b/com32/modules/prdhcp.c
index 5b572b0b..321d4e77 100644
--- a/com32/modules/prdhcp.c
+++ b/com32/modules/prdhcp.c
@@ -136,11 +136,12 @@ void print_dhcp_pkt_all(void)
pxe_bootp_t *p;
size_t len;
int i;
+ int ptype[3] = {PXENV_PACKET_TYPE_DHCP_DISCOVER, PXENV_PACKET_TYPE_DHCP_ACK, PXENV_PACKET_TYPE_CACHED_REPLY};
for (i = 0; i < 3; i++) {
- if (!pxe_get_cached_info(PXENV_PACKET_TYPE_CACHED_REPLY,
+ if (!pxe_get_cached_info(ptype[i],
(void **)&(p), &(len))) {
- dprintf("Got packet #%d\n", i);
+ dprintf("Got packet #%d/%d\n", (i + 1), ptype[i]);
print_pxe_bootp_t(p, len);
pressanykey();
}