Displaying 1 result from an estimated 1 matches for "mac_max".
Did you mean:
af_max
2014 Feb 24
3
[RFC, PATCH] core/pxe: Add architecture-specific discovery request for PXE config file
...strcpy(config_file, default_str);
if (open_file(ConfigName, O_RDONLY, filedata) >= 0)
diff --git a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h
index 279957a..9ba27e5 100644
--- a/core/fs/pxe/pxe.h
+++ b/core/fs/pxe/pxe.h
@@ -35,6 +35,18 @@
#define BOOTP_OPTION_MAGIC htonl(0x63825363)
#define MAC_MAX 32
+#ifdef __EFI__
+
+#ifdef __x86_64__
+#define DHCP_CLIENT_ARCH htons(0x0007)
+#else
+#define DHCP_CLIENT_ARCH htons(0x0006)
+#endif
+
+#else
+#define DHCP_CLIENT_ARCH htons(0x0000)
+#endif
+
/*
* structures
*/
diff --git a/doc/pxelinux.txt b/doc/pxelinux.txt
index 4dbb152..b75193...