From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 01B1981925 for ; Sun, 8 Jan 2017 23:11:48 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 08 Jan 2017 23:11:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,339,1477983600"; d="scan'208";a="27881571" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 08 Jan 2017 23:11:48 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 8 Jan 2017 23:11:48 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 8 Jan 2017 23:11:48 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Mon, 9 Jan 2017 15:11:44 +0800 From: "Fu, Siyuan" To: "Zhang, Lubo" , "edk2-devel@lists.01.org" CC: Santhapur Naveen , "Ye, Ting" , "Wu, Jiaxin" Thread-Topic: [patch] ShellPkg: Add check logic for the gateway validity. Thread-Index: AQHSZ/2UaCJ53WMItUaiXF2pYxBPy6Evvz4Q Date: Mon, 9 Jan 2017 07:11:43 +0000 Message-ID: References: <1483694175-41876-1-git-send-email-lubo.zhang@intel.com> In-Reply-To: <1483694175-41876-1-git-send-email-lubo.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2VlNTQ2NTUtYTFiNi00ZWVlLTgwZmYtNjU5YWE0NmI5MDU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlFjNFpWZTV2UTlKZmNpRVEwYkVCd0N4OUhWR0V0b3lYNFNnSDA0UjFudWM9In0= x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [patch] ShellPkg: Add check logic for the gateway validity. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 07:11:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 UmV2aWV3ZWQtYnk6IEZ1IFNpeXVhbiA8c2l5dWFuLmZ1QGludGVsLmNvbT4NCg0KLS0tLS1Pcmln aW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFpoYW5nLCBMdWJvIA0KU2VudDogMjAxN8TqMdTCNsjV IDE3OjE2DQpUbzogZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcNCkNjOiBTYW50aGFwdXIgTmF2ZWVu IDxuYXZlZW5zQGFtaWluZGlhLmNvLmluPjsgWWUsIFRpbmcgPHRpbmcueWVAaW50ZWwuY29tPjsg RnUsIFNpeXVhbiA8c2l5dWFuLmZ1QGludGVsLmNvbT47IFd1LCBKaWF4aW4gPGppYXhpbi53dUBp bnRlbC5jb20+DQpTdWJqZWN0OiBbcGF0Y2hdIFNoZWxsUGt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GZ1bGwgdGV4dCBvZiB0 aGUgbGljZW5zZSBtYXkgYmUgZm91bmQgYXQNCiAgIGh0dHA6Ly9vcGVuc291cmNlLm9yZy9saWNl bnNlcy9ic2QtbGljZW5zZS5waHAuDQpAQCAtODM1LDEwICs4MzUsMTIgQEAgSWZDb25maWdTZXRJ bnRlcmZhY2VJbmZvICgNCiANCiAgIEVGSV9JUDRfQ09ORklHMl9QT0xJQ1kgICAgICAgICAgIFBv bGljeTsNCiAgIEVGSV9JUDRfQ09ORklHMl9NQU5VQUxfQUREUkVTUyAgIE1hbnVhbEFkZHJlc3M7 DQogICBVSU5UTiAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRhU2l6ZTsNCiAgIEVGSV9J UHY0X0FERFJFU1MgICAgICAgICAgICAgICAgIEdhdGV3YXk7DQorICBJUDRfQUREUiAgICAgICAg ICAgICAgICAgICAgICAgICBTdWJuZXRNYXNrOw0KKyAgSVA0X0FERFIgICAgICAgICAgICAgICAg ICAgICAgICAgVGVtcEdhdGV3YXk7DQogICBFRklfSVB2NF9BRERSRVNTICAgICAgICAgICAgICAg ICAqRG5zOw0KICAgQVJHX0xJU1QgICAgICAgICAgICAgICAgICAgICAgICAgKlRtcDsNCiAgIFVJ TlROICAgICAgICAgICAgICAgICAgICAgICAgICAgIEluZGV4Ow0KIA0KICAgQ09OU1QgQ0hBUjE2 KiBUZW1wU3RyaW5nOw0KQEAgLTEwMTcsMTAgKzEwMTksMjUgQEAgSWZDb25maWdTZXRJbnRlcmZh Y2VJbmZvICgNCiAgICAgICAgIFNoZWxsU3RhdHVzID0gU0hFTExfSU5WQUxJRF9QQVJBTUVURVI7 DQogICAgICAgICBnb3RvIE9OX0VYSVQ7DQogICAgICAgfQ0KIA0KICAgICAgIC8vDQorICAgICAg Ly8gTmVlZCB0byBjaGVjayB0aGUgZ2F0ZXdheSB2YWxpZGl0eSBiZWZvcmUgc2V0IE1hbnVhbCBB ZGRyZXNzLg0KKyAgICAgIC8vIEluIGNhc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