OpenCore
1.0.4
OpenCore Bootloader
|
#include "NetworkBootInternal.h"
Go to the source code of this file.
Macros | |
#define | STATIC4 L"static4:" |
#define | NORMAL_MAC_ADDRESS_DIGIT_COUNT (NET_ETHER_ADDR_LEN * 2) |
#define | MAX_MAC_ADDRESS_DIGIT_COUNT (sizeof (EFI_MAC_ADDRESS) * 2) |
#define | VLAN_DIGIT_COUNT 4 |
Enumerations | |
enum | PARSE_MAC_ADDRESS_STATE { MAC_STRING_MAC_ADDRESS , MAC_STRING_VLAN } |
Functions | |
STATIC EFI_STATUS | ValidateMacString (CHAR16 *MacString) |
STATIC VOID | NormaliseMacString (CHAR16 *MacString) |
STATIC CHAR16 * | GetNextIp4 (CHAR16 *CurrentIP, CHAR8 *RequiredName) |
EFI_STATUS | AddRemoveStaticIPs (OC_FLEX_ARRAY *ParsedLoadOptions) |
Static IPv4 handling for HTTP Boot. Set and remove NVRAM vars in which Ip4Dxe stores per MAC(+VLAN) IP settings.
Copyright (c) 2024, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file StaticIp4.c.
#define MAX_MAC_ADDRESS_DIGIT_COUNT (sizeof (EFI_MAC_ADDRESS) * 2) |
Definition at line 19 of file StaticIp4.c.
#define NORMAL_MAC_ADDRESS_DIGIT_COUNT (NET_ETHER_ADDR_LEN * 2) |
Definition at line 18 of file StaticIp4.c.
#define STATIC4 L"static4:" |
Definition at line 16 of file StaticIp4.c.
#define VLAN_DIGIT_COUNT 4 |
Definition at line 20 of file StaticIp4.c.
Enumerator | |
---|---|
MAC_STRING_MAC_ADDRESS | |
MAC_STRING_VLAN |
Definition at line 11 of file StaticIp4.c.
EFI_STATUS AddRemoveStaticIPs | ( | OC_FLEX_ARRAY * | ParsedLoadOptions | ) |
Definition at line 142 of file StaticIp4.c.
STATIC CHAR16 * GetNextIp4 | ( | CHAR16 * | CurrentIP, |
CHAR8 * | RequiredName ) |
Definition at line 120 of file StaticIp4.c.
STATIC VOID NormaliseMacString | ( | CHAR16 * | MacString | ) |
Definition at line 100 of file StaticIp4.c.
STATIC EFI_STATUS ValidateMacString | ( | CHAR16 * | MacString | ) |
Definition at line 28 of file StaticIp4.c.