diff options
author | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-29 10:44:12 +0000 |
---|---|---|
committer | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-29 10:44:12 +0000 |
commit | 64b2d0e5c0d58c9276e458f70caf731f3328f822 (patch) | |
tree | 35555e3993c2123f57bde2beae85639b7984f3ca /NetworkPkg/Application/IpsecConfig/IpSecConfig.c | |
parent | e0ee9d9314c7c2816b89908a1fac871c911f1cb0 (diff) | |
download | edk2-platforms-64b2d0e5c0d58c9276e458f70caf731f3328f822.tar.xz |
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
Diffstat (limited to 'NetworkPkg/Application/IpsecConfig/IpSecConfig.c')
-rw-r--r-- | NetworkPkg/Application/IpsecConfig/IpSecConfig.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/NetworkPkg/Application/IpsecConfig/IpSecConfig.c b/NetworkPkg/Application/IpsecConfig/IpSecConfig.c index 3554355bd7..1e63bc9622 100644 --- a/NetworkPkg/Application/IpsecConfig/IpSecConfig.c +++ b/NetworkPkg/Application/IpsecConfig/IpSecConfig.c @@ -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) {
|