From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 1801F803FD for ; Wed, 15 Mar 2017 18:46:17 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 15 Mar 2017 18:46:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="60961461" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 15 Mar 2017 18:46:16 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 18:46:10 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 18:46:09 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Thu, 16 Mar 2017 09:46:07 +0800 From: "Fu, Siyuan" To: "Zhang, Lubo" , "edk2-devel@lists.01.org" CC: "Wu, Jiaxin" , "Ye, Ting" Thread-Topic: [PATCH V2] NetworkPkg: Fix service binding issue in TCP dxe. Thread-Index: AQHSnTPPgY/8CXzitEuFWyiN16HJqKGWs6wQ Date: Thu, 16 Mar 2017 01:46:07 +0000 Message-ID: References: <1489544879-24940-1-git-send-email-lubo.zhang@intel.com> In-Reply-To: <1489544879-24940-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzIyM2RkMmItZjc2MS00YTc4LWIzMjctMzMzNGYxNTdjMWQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InpYN0xJVHExcW9zTUFzeGxQY3B2ZnZhM2VmckhrOUpDUVpDUXRFdFdROGM9In0= x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH V2] NetworkPkg: Fix service binding issue in TCP dxe. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2017 01:46:17 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 TG9va3MgZ29vZCB0byBtZS4NClJldmlld2VkLWJ5OiBGdSBTaXl1YW4gPHNpeXVhbi5mdUBpbnRl bC5jb20+DQoNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFpoYW5nLCBMdWJv IA0KU2VudDogMjAxN8TqM9TCMTXI1SAxMDoyOA0KVG86IGVkazItZGV2ZWxAbGlzdHMuMDEub3Jn DQpDYzogV3UsIEppYXhpbiA8amlheGluLnd1QGludGVsLmNvbT47IFllLCBUaW5nIDx0aW5nLnll QGludGVsLmNvbT47IEZ1LCBTaXl1YW4gPHNpeXVhbi5mdUBpbnRlbC5jb20+DQpTdWJqZWN0OiBb UEFUQ0ggVjJdIE5ldHdvcmtQa2c6IEZpeCBzZXJ2aWNlIGJpbmRpbmcg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9WRVJTSU9OXzQpIHsNCi0gICAgVGNwUHJvdG9jb2xHdWlkID0gJmdFZmlUY3A0UHJvdG9jb2xH dWlkOw0KLSAgfSBlbHNlIHsNCi0gICAgVGNwUHJvdG9jb2xHdWlkID0gJmdFZmlUY3A2UHJvdG9j b2xHdWlkOw0KLSAgfQ0KLQ0KLSAgLy8NCi0gIC8vIFJldHJpZXZlIHRoZSBwcm90b2NvbCBpbnN0 YWxsZWQgb24gdGhpcyBzb2NrDQotICAvLw0KLSAgU3RhdHVzID0gZ0JTLT5PcGVuUHJvdG9jb2wg KA0KLSAgICAgICAgICAgICAgICAgIFNvY2stPlNvY2tIYW5kbGUsDQotICAgICAgICAgICAgICAg ICAgVGNwUHJvdG9jb2xHdWlkLA0KLSAgICAgICAgICAgICAgICAgICZTb2NrUHJvdG9jb2wsDQot ICAgICAgICAgICAgICAgICAgU29jay0+RHJpdmVyQmluZGluZywNCi0gICAgICAgICAgICAgICAg ICBTb2NrLT5Tb2NrSGFuZGxlLA0KLSAgICAgICAgICAgICAgICAgIEVGSV9PUEVOX1BST1RPQ09M X0dFVF9QUk9UT0NPTA0KLSAgICAgICAgICAgICAgICAgICk7DQotDQotICBpZiAoRUZJX0VSUk9S IChTdGF0dXMpKSB7DQotDQotICAgIERFQlVHICgNCi0gICAgICAoRUZJX0RfRVJST1IsDQotICAg ICAgIlNvY2tEZXN0cm95OiBPcGVuIHByb3RvY29sIGluc3RhbGxlZCBvbiBzb2NrZXQgZmFpbGVk IHdpdGggJXJcbiIsDQotICAgICAgU3RhdHVzKQ0KLSAgICAgICk7DQotDQotICAgIGdvdG8gRnJl ZVNvY2s7DQotICB9DQotDQotICAvLw0KLSAgLy8gVW5pbnN0YWxsIHRoZSBwcm90b2NvbCBpbnN0 YWxsZWQgb24gdGhpcyBzb2NrDQotICAvLyBpbiB0aGUgbGlnaHQgb2YgU29jay0+U29ja1R5cGUN Ci0gIC8vDQotICBnQlMtPlVuaW5zdGFsbE11bHRpcGxlUHJvdG9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zdHJveUNhbGxiYWNrIChTb2NrLCBTb2NrLT5Db250ZXh0KTsgIH0NCisNCisgIC8v DQorICAvLyBSZXRyaWV2ZSB0aGUgcHJvdG9jb2wgaW5zdGFsbGVkIG9uIHRoaXMgc29jayAgLy8g IFN0YXR1cyA9IA0KKyBnQlMtPk9wZW5Qcm90b2NvbCAoDQorICAgICAgICAgICAgICAgICAgU29j ay0+U29ja0hhbmRsZSwNCisgICAgICAgICAgICAgICAgICBUY3BQcm90b2NvbEd1aWQsDQorICAg ICAgICAgICAgICAgICAgJlNvY2tQcm90b2NvbCwNCisgICAgICAgICAgICAgICAgICBTb2NrLT5E cml2ZXJCaW5kaW5nLA0KKyAgICAgICAgICAgICAgICAgIFNvY2stPlNvY2tIYW5kbGUsDQorICAg ICAgICAgICAgICAgICAgRUZJX09QRU5fUFJPVE9DT0xfR0VUX1BST1RPQ09MDQorICAgICAgICAg ICAgICAgICAgKTsNCisNCisgIGlmIChFRklfRVJST1IgKFN0YXR1cykpIHsNCisNCisgICAgREVC VUcgKA0KKyAgICAgIChFRklfRF9FUlJPUiwNCisgICAgICAiU29ja0Rlc3Ryb3lDaGlsZDogT3Bl biBwcm90b2NvbCBpbnN0YWxsZWQgb24gc29ja2V0IGZhaWxlZCB3aXRoICVyXG4iLA0KKyAgICAg IFN0YXR1cykNCisgICAgICApOw0KKyAgfQ0KKw0KKyAgLy8NCisgIC8vIFVuaW5zdGFsbCB0aGUg cHJvdG9jb2wgaW5zdGFsbGVkIG9uIHRoaXMgc29jayAgLy8gIA0KKyBnQlMtPlVuaW5zdGFsbE11 bHRpcGxlUHJvdG9jb2xJbnRlcmZhY2VzICgNCisgICAgICAgIFNvY2stPlNvY2tIYW5kbGUsDQor ICAgICAgICBUY3BQcm90b2NvbEd1aWQsDQorICAgICAgICBTb2NrUHJvdG9jb2wsDQorICAgICAg ICBOVUxMDQorICAgICAgICApOw0KKw0KKyAgLy8NCiAgIC8vIGZvcmNlIHByb3RvY29sIGxheWVy IHRvIG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