summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 20:29:16 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 20:29:38 +0100
commitfcc66b0fa04b25b206e702110ed652fd4c113823 (patch)
tree0ea6fca5769e5fd14ce199eaf2b37bfe7cab2ce6 /lib
parent154b4163d7c19aa86d3e47a78de9111d37f7f307 (diff)
fw: replace netboot with bootnet.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bootnet.h (renamed from lib/netboot.h)8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/netboot.h b/lib/bootnet.h
index 4c85394..3ce6763 100644
--- a/lib/netboot.h
+++ b/lib/bootnet.h
@@ -8,13 +8,13 @@
#include <lib/boot.h>
-#define NETBOOT_INET_MAGIC "NETB"
-#define NETBOOT_INET_MAGIC_LEN 4
+#define BOOTNET_INET_MAGIC "NETB"
+#define BOOTNET_INET_MAGIC_LEN 4
/// @brief Netboot Internet Header
/// Consists of 4 magic characters, and a set of fields describing the current patch that's being sent (if m_preflight = 0)
/// @note Can be used to patch ROMs too (if m_implies_rom = 1)
-typedef struct NETBOOT_INET_HEADER
+typedef struct bootnet_inet_header
{
char m_nb1; /// magic char 1 'N'
char m_nb2; /// magic char 2 'E'
@@ -27,4 +27,4 @@ typedef struct NETBOOT_INET_HEADER
uint8_t m_implies_rom; /// does it imply an EEPROM program?
uint8_t m_preflight; /// Do we just check if this endpoint exists/is valid?
uint8_t m_blob[];
-} NETBOOT_INET_HEADER;
+} bootnet_inet_header;