efi_selftest: add test for IPv4 Config2 protocol
PATCH 15/15 efi_selftest: add test for IPv4 Config2 protocol
Add a test for the EFI_IP4_CONFIG2_PROTOCOL. The test sets the ip policy to static, adds an ip address, and then reads the current ip address and checks for it to be the same as the one that was set.
Signed-off-by Adriano Cordova <[email protected]>
--- lib/efi_selftest/Makefile | 2 + lib/efi_selftest/efi_selftest_ipconfig.c | 173 +++++++++++++++++++++++ 2 files changed, 175 insertions(+) create mode 100644 lib/efi_selftest/efi_selftest_ipconfig.c
lib/efi_selftest/Makefile +2 -0
@@ -53,6 +53,8 @@ efi_selftest_watchdog.o obj-$(CONFIG_EFI_ECPT) += efi_selftest_ecpt.o obj-$(CONFIG_NETDEVICES) += efi_selftest_snp.o obj-$(CONFIG_EFI_HTTP_PROTOCOL) += efi_selftest_http.o +obj-$(CONFIG_EFI_HTTP_PROTOCOL) += efi_selftest_ipconfig.o + obj-$(CONFIG_EFI_DEVICE_PATH_TO_TEXT) += efi_selftest_devicepath.o obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += \ efi_selftest_unicode_collation.o
lib/efi_selftest/efi_selftest_ipconfig.c new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.43.0