diff options
Diffstat (limited to 'lib/netboot.h')
| -rw-r--r-- | lib/netboot.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/netboot.h b/lib/netboot.h index 385e6b2..6976359 100644 --- a/lib/netboot.h +++ b/lib/netboot.h @@ -11,6 +11,9 @@ #define NETBOOT_INET_MAGIC "NETB" #define NETBOOT_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 { char m_nb1; /// magic char 1 'N' @@ -21,7 +24,7 @@ typedef struct NETBOOT_INET_HEADER char m_patch_name[255]; /// example: ColdChoco int32_t m_length; /// the patch length. char m_target[255]; /// the target file. - uint8_t ImpliesROM; /// does it imply an EEPROM reprogram? - uint8_t m_preflight; + uint8_t m_implies_rom; /// does it imply an EEPROM reprogram? + uint8_t m_preflight; /// Do we just check if this endpoint exists/is valid? uint8_t m_blob[]; } NETBOOT_INET_HEADER; |
