aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-22 22:16:30 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-22 22:16:30 +0100
commit7561c21cdc63e78d1ac700c43e25fcaea40e0575 (patch)
treef3c531aab1f5f83bd421a6bb759e66087c39b84e /com32/hdt
parent10e31def736e29719392ddfadc849b3a475d99d7 (diff)
downloadsyslinux-7561c21cdc63e78d1ac700c43e25fcaea40e0575.tar.gz
syslinux-7561c21cdc63e78d1ac700c43e25fcaea40e0575.tar.xz
syslinux-7561c21cdc63e78d1ac700c43e25fcaea40e0575.zip
dump-pxe: dumping part of the dhcpdata structure
This is a nice info as it gives the next-server ip.
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump-pxe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/hdt/hdt-dump-pxe.c b/com32/hdt/hdt-dump-pxe.c
index 21921849..9e24b7cc 100644
--- a/com32/hdt/hdt-dump-pxe.c
+++ b/com32/hdt/hdt-dump-pxe.c
@@ -29,6 +29,7 @@
#include "hdt-common.h"
#include "hdt-dump.h"
#include <sys/gpxe.h>
+#include <netinet/in.h>
void dump_pxe(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item) {
@@ -67,6 +68,9 @@ void dump_pxe(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item)
hardware->pxe.ip_addr[1],
hardware->pxe.ip_addr[2],
hardware->pxe.ip_addr[3]);
+ add_s("pxe.client_ip",inet_ntoa(hardware->pxe.dhcpdata.cip));
+ add_s("pxe.next_server_ip",inet_ntoa(hardware->pxe.dhcpdata.sip));
+ add_s("pxe.relay_agent_ip",inet_ntoa(hardware->pxe.dhcpdata.gip));
add_s("pxe.ipaddr",ip);
add_b("gpxe_detected",is_gpxe());
flush("pxe",config,item);