From 8bf4ad4475c061a9ff4fc248ba7f11784d706342 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 15 Jul 2014 09:25:57 +0000 Subject: ArmPlatformPkg/Bds: Getting and editing IP addresses Reworked GetHIInputIP() function to use "NetLibStrToIp4()" library function to parse the IPv4 address instead of doing it by itself. Added function EditHIInputIP() in BdsHelper.c to edit an IPv4 address. To be used when updating a tftp boot option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15660 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Bds/BdsInternal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ArmPlatformPkg/Bds/BdsInternal.h') diff --git a/ArmPlatformPkg/Bds/BdsInternal.h b/ArmPlatformPkg/Bds/BdsInternal.h index 447b8c9cd1..d5b1b79c38 100644 --- a/ArmPlatformPkg/Bds/BdsInternal.h +++ b/ArmPlatformPkg/Bds/BdsInternal.h @@ -160,6 +160,12 @@ GetHIInputIP ( OUT EFI_IP_ADDRESS *Ip ); +EFI_STATUS +EditHIInputIP ( + IN EFI_IP_ADDRESS *InIpAddr, + OUT EFI_IP_ADDRESS *OutIpAddr + ); + EFI_STATUS GetHIInputBoolean ( OUT BOOLEAN *Value -- cgit v1.2.3