From 78e24f50ab754f35f4aa208ade7c9fd794d82036 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Tue, 1 Jul 2014 11:14:57 +0200 Subject: Parse 'origin' value from iBFT iBFT has an 'origin' field which indicates the origin of the network address. If that is set to '3' it indicates that DHCP has been used; there is no need to evaluate the 'dhcp' field here. In fact. latest iPXE sets the 'origin' field, but not the 'dhcp' field. Signed-off-by: Hannes Reinecke --- include/fw_context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/fw_context.h b/include/fw_context.h index 6563d68..295b54d 100644 --- a/include/fw_context.h +++ b/include/fw_context.h @@ -48,6 +48,7 @@ struct boot_context { char initiatorname[TARGET_NAME_MAXLEN + 1]; /* network settings */ + char origin[2]; char dhcp[NI_MAXHOST]; char iface[IF_NAMESIZE]; char mac[18]; -- cgit v1.2.1