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
This commit is contained in:
tye1 2012-10-17 08:41:49 +00:00
parent 75dce34062
commit f269f2afa1
1 changed files with 12 additions and 0 deletions

View File

@ -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;