[efi] Register EFI IPv6 device path settings as netX.ndp
The EFI device path settings are currently registered as the "netX.dhcp" settings block, in order that they will be automatically overridden if a real DHCP configuration takes place. This does not work as expected in an IPv6-only network, since the IPv6 configurator will register "netX.ndp" rather than "netX.dhcp". Fix by registering the EFI device path settings as either "netX.dhcp" or "netX.ndp" based on the first address family encountered within the device path. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -47,6 +47,7 @@ extern size_t efi_path_len ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern int efi_path_check ( EFI_DEVICE_PATH_PROTOCOL *path, size_t max );
|
||||
extern void * efi_path_mac ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern unsigned int efi_path_vlan ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern unsigned int efi_path_family ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern int efi_path_guid ( EFI_DEVICE_PATH_PROTOCOL *path, union uuid *uuid );
|
||||
extern struct uri * efi_path_uri ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern EFI_DEVICE_PATH_PROTOCOL * efi_paths ( EFI_DEVICE_PATH_PROTOCOL *first,
|
||||
|
||||
Reference in New Issue
Block a user