diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2012-02-03 23:14:04 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2012-02-03 23:14:04 -0500 |
commit | bd71f69ea0aa1e50f4bd4accc9f63be6f0d69cbb (patch) | |
tree | 7a5d636559d731838b52db9aad0d743b2721cb92 /com32 | |
parent | dc83e35c13e031d23b614ccd30f16ee78223a267 (diff) | |
download | syslinux-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.c | 5 |
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(); } |