mirror of https://github.com/acidanthera/audk.git
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:
parent
75dce34062
commit
f269f2afa1
|
@ -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);
|
InsertHeadList (&IpSb->Interfaces, &IpSb->DefaultInterface->Link);
|
||||||
|
|
||||||
*Service = IpSb;
|
*Service = IpSb;
|
||||||
|
|
Loading…
Reference in New Issue