Update Ipsecconfig application.
1. add the support of "--tunnel-dest" and "tunnel-source" parameters. 2. transfer to EFI_IPSEC_SA_DATA2. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11205 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -82,7 +82,8 @@ SHELL_PARAM_ITEM mIpSecConfigParamList[] = {
|
||||
// --ipsec-proto
|
||||
//
|
||||
{ L"--spi", TypeValue },
|
||||
{ L"--dest", TypeValue },
|
||||
{ L"--tunnel-dest", TypeValue },
|
||||
{ L"--tunnel-source", TypeValue },
|
||||
{ L"--lookup-spi", TypeValue },
|
||||
{ L"--lookup-ipsec-proto", TypeValue },
|
||||
{ L"--lookup-dest", TypeValue },
|
||||
@@ -292,7 +293,8 @@ VAR_CHECK_ITEM mIpSecConfigVarCheckList[] = {
|
||||
// --ipsec-proto
|
||||
//
|
||||
{ L"--spi", 0, 0, BIT(1), 0 },
|
||||
{ L"--dest", 0, 0, BIT(1), 0 },
|
||||
{ L"--tunnel-dest", 0, 0, BIT(1), 0 },
|
||||
{ L"--tunnel-source", 0, 0, BIT(1), 0 },
|
||||
{ L"--lookup-spi", 0, 0, BIT(1), 0 },
|
||||
{ L"--lookup-ipsec-proto", 0, 0, BIT(1), 0 },
|
||||
{ L"--lookup-dest", 0, 0, BIT(1), 0 },
|
||||
@@ -548,7 +550,7 @@ IpSecConfigRetriveCheckListByName (
|
||||
for (Node = GetFirstNode (ParamPackage); !IsNull (ParamPackage, Node); Node = GetNextNode (ParamPackage, Node)) {
|
||||
if (((SHELL_PARAM_PACKAGE *) Node)->Name != NULL) {
|
||||
//
|
||||
// Enumerate the check list that defines the conflicted attributes of each flag.
|
||||
// Enumerate the check list that defines the conflicted attributes of each flag.
|
||||
//
|
||||
for (; Item->VarName != NULL; Item++) {
|
||||
if (StrCmp (((SHELL_PARAM_PACKAGE *) Node)->Name, Item->VarName) == 0) {
|
||||
|
Reference in New Issue
Block a user