From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpproxy21.qq.com (smtpproxy21.qq.com [203.205.195.105]) by mx.groups.io with SMTP id smtpd.web08.1620.1612486104813391766 for ; Thu, 04 Feb 2021 16:48:27 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: jumple.com, ip: 203.205.195.105, mailfrom: yufei.liang@jumple.com) X-QQ-mid: bizesmtp15t1612486098tjdmvdrd Received: from DESKTOPJUCE57K (unknown [222.94.163.61]) by esmtp6.qq.com (ESMTP) with id ; Fri, 05 Feb 2021 08:48:17 +0800 (CST) X-QQ-SSF: 00100000002000Z0Z000B00A0000000 X-QQ-FEAT: 5TyG7b0eEfqe0FifAemYorQqZdkeK84uBELFBP3+LwBg5hv5N0wlUl/eldpYn 16+PkqMMbffsjTuYHWIMsnC+H+7uEUCDW3kuUrb+uZtecbGzpWbKpRvZHfxfmRub8nue6Q4 pGbUjH2BGnQvVb2hvsBcRv/Ha0yUGksnu+M2nVampzFW1lcxiB32kN5etmIdNrXqDSn2eK0 LelvNDvSqPSQudCfyOIBwELIDrCGqHT4kO85sIc1ke3M/0y7Mgop40OeM7XHeTC2Hna4hKr RxtNi9I89G+dr+KWxDu2xxj9nMV5WUTsiZjxthDeRjRsmM/RUCJtVoJxX7eIvNToGumt6G/ uqOzF/4 X-QQ-GoodBg: 0 From: =?UTF-8?B?5qKB5a6H6aOe?= To: "'Fu, Siyuan'" , "'Laszlo Ersek'" , Cc: "'Maciej Rabeda'" , "'Wu, Jiaxin'" References: In-Reply-To: Subject: =?UTF-8?B?562U5aSNOiBbZWRrMi1kZXZlbF0gSG93IGNhbiBJIHJlY2VpdmUgRUFQIHBhY2tldHM/?= Date: Fri, 5 Feb 2021 08:48:18 +0800 Message-ID: <000001d6fb58$99337af0$cb9a70d0$@jumple.com>+51420DFA9DDC02BD MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHlPKkWi9d4jhIm0PNCYtdCILyaRQNlcy8LAqpwAaOp+7c1EA== X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:jumple.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Thank you for your reply. I will try to use MNP protocol. >>Not sure if this is the "hybrid mode" you asking about. Sorry, it's wrong. It should be "Promiscuous mode". Best regards Yufei liang -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Fu, Siyuan [mailto:siyuan.fu@intel.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2021=E5=B9=B42=E6=9C=884=E6=97=A5 = 22:10 =E6=94=B6=E4=BB=B6=E4=BA=BA: Laszlo Ersek; devel@edk2.groups.io; = yufei.liang@jumple.com =E6=8A=84=E9=80=81: Maciej Rabeda; Wu, Jiaxin =E4=B8=BB=E9=A2=98: RE: [edk2-devel] How can I receive EAP packets? > -----Original Message----- > From: Laszlo Ersek > Sent: 2021=E5=B9=B42=E6=9C=884=E6=97=A5 17:56 > To: devel@edk2.groups.io; yufei.liang@jumple.com > Cc: Maciej Rabeda ; Fu, Siyuan=20 > ; Wu, Jiaxin > Subject: Re: [edk2-devel] How can I receive EAP packets? >=20 > On 02/03/21 04:20, =E6=A2=81=E5=AE=87=E9=A3=9E wrote: > > Hi,everyone, I am using edkii to write EAP certified loader, I use=20 > > EFI_ SIMPLE_ NETWORK.Transmit () to contract, want to use EFI_=20 > > SIMPLE_ NETWORK.Receive () to receive packets. It is found that The SNP protocol is low level interface to access network adaptor = directly, It's not designed to be used by application level, because it = could only have one consumer unlike other service binding network = service protocols. So any packet receive through SNP will be only = delivered to this single consumer.=20 If your "EAP certified loader" consumes SNP protocol, all upper layer = network stack (TCP/IP, etc) will stop work. So, at least use MNP = protocol instead. > > ordinary IP packets can be received, but EAP packets cannot be=20 > > received. How can I receive EAP package? I think there is a saying=20 > > of hybrid mode in the program under windows. I want to know whether The MNP protocol "EnablePromiscuousReceive" allows you to receive = packets that are sent to any MAC address. The IP protocol child = instance with 0.0.0.0 station address allows you to receive packets that = are send to any IP address. Not sure if this is the "hybrid mode" you asking about. > > there is such a saying under EDK. In addition, I think EDK provides=20 > > EFI_ EAP_ Protocol, I want to use this interface for user name and=20 > > password authentication, but look at EFI_ EAP_ Protocol interface,=20 > > do not know how to use, I would like to ask the relevant example = code? As I know there is no driver to produce/consume EAP protocol in EDK2. Thanks Siyuan > I don't know anything about "EAP", but I've CC'd the NetworkPkg = owners. >=20 > Thanks > Laszlo