From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by mx.groups.io with SMTP id smtpd.web10.5032.1612509370933293421 for ; Thu, 04 Feb 2021 23:16:11 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: jumple.com, ip: 54.206.16.166, mailfrom: yufei.liang@jumple.com) X-QQ-mid: bizesmtp29t1612509363tpzedavs Received: from DESKTOPJUCE57K (unknown [222.94.163.61]) by esmtp6.qq.com (ESMTP) with id ; Fri, 05 Feb 2021 15:16:02 +0800 (CST) X-QQ-SSF: 00100000002000Z0Z000B00A0000000 X-QQ-FEAT: xmzaef4TE3f9R/ZPMNbaiGrpzvb14Af2TyKU7OoJI+VZNQGZLIWcdDL5QI2cs B+Is2Pf0gxeOW14zXgmhfE+V3tMEMgwGyUC7w3EQ4TlZlGoJeO4YJ1sOFDbX9k2858eToZk /KWuGu8sq8T3CrGVSswfLElGHJRLPqUGoYw1bIpJWvLj6NMrCanrRB5J1KU9r+VoEy863Sq YxajOpDz+mUe9vpkiGTtQhO0mRDLiXee3aISa8+scGuIE4mZ3XERyjZ4xZfNxYYQxJk5rhW 6+LGwkecDkbAzUgvCXBmePL4RES/g/p71FjU8UdRP/ZWQOFQXpVRfsloRA0r2n85veetBSA K2XQwixB057weAUsLvlPzerpxX/ZVnkz6w4s1IG 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 15:16:04 +0800 Message-ID: <000001d6fb8e$c4493c30$4cdbb490$@jumple.com>+59F1496E29A49CEA MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHlPKkWi9d4jhIm0PNCYtdCILyaRQNlcy8LAqpwAaOp+7c1EIAAbSWw 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 Do you have any examples or documentation of using MNP? 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: =E6=A2=81=E5=AE=87=E9=A3=9E = [mailto:yufei.liang@jumple.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2021=E5=B9=B42=E6=9C=885=E6=97=A5 = 8:48 =E6=94=B6=E4=BB=B6=E4=BA=BA: 'Fu, Siyuan'; 'Laszlo Ersek'; = 'devel@edk2.groups.io' =E6=8A=84=E9=80=81: 'Maciej Rabeda'; 'Wu, Jiaxin' =E4=B8=BB=E9=A2=98: =E7=AD=94=E5=A4=8D: [edk2-devel] How can I receive = EAP packets? 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] =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