summaryrefslogtreecommitdiff
path: root/NetworkPkg/Ip6Dxe
diff options
context:
space:
mode:
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-17 08:41:49 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-17 08:41:49 +0000
commitf269f2afa152c4a701ae1c042039c3b1a53889a0 (patch)
treecace3951e61b5c1a6a9fa4cebefa41209170f693 /NetworkPkg/Ip6Dxe
parent75dce340624dba5e4a79b2e5b2dbe943bae0d0e9 (diff)
downloadedk2-f269f2afa152c4a701ae1c042039c3b1a53889a0.zip
edk2-f269f2afa152c4a701ae1c042039c3b1a53889a0.tar.gz
edk2-f269f2afa152c4a701ae1c042039c3b1a53889a0.tar.bz2
Add manual configured gateway address back after system reset.
Signed-off-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Ouyang Qian <qian.ouyang@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13860 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/Ip6Dxe')
-rw-r--r--NetworkPkg/Ip6Dxe/Ip6Driver.c12
1 files changed, 12 insertions, 0 deletions
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;