From f269f2afa152c4a701ae1c042039c3b1a53889a0 Mon Sep 17 00:00:00 2001 From: tye1 Date: Wed, 17 Oct 2012 08:41:49 +0000 Subject: Add manual configured gateway address back after system reset. Signed-off-by: Ye Ting Reviewed-by: Ouyang Qian Reviewed-by: Fu Siyuan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13860 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/Ip6Dxe/Ip6Driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'NetworkPkg/Ip6Dxe') diff --git a/NetworkPkg/Ip6Dxe/Ip6Driver.c b/NetworkPkg/Ip6Dxe/Ip6Driver.c index d242b15..3fd1f73 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Driver.c +++ b/NetworkPkg/Ip6Dxe/Ip6Driver.c @@ -472,6 +472,18 @@ Ip6CreateService ( ); } + // + // If there is any gateway address, set it. + // + DataItem = &IpSb->Ip6ConfigInstance.DataItem[Ip6ConfigDataTypeGateway]; + if (DataItem->Data.Ptr != NULL) { + DataItem->SetData ( + &IpSb->Ip6ConfigInstance, + DataItem->DataSize, + DataItem->Data.Ptr + ); + } + InsertHeadList (&IpSb->Interfaces, &IpSb->DefaultInterface->Link); *Service = IpSb; -- cgit v1.1