You may check the Ip4Dxe as example. > 在 2021年2月5日,15:16,梁宇飞 <yufei.li...@jumple.com> 写道: > > Do you have any examples or documentation of using MNP? > > Best regards > Yufei liang > -----邮件原件----- > 发件人: 梁宇飞 [mailto:yufei.li...@jumple.com] > 发送时间: 2021年2月5日 8:48 > 收件人: 'Fu, Siyuan'; 'Laszlo Ersek'; 'devel@edk2.groups.io' > 抄送: 'Maciej Rabeda'; 'Wu, Jiaxin' > 主题: 答复: [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 > -----邮件原件----- > 发件人: Fu, Siyuan [mailto:siyuan...@intel.com] > 发送时间: 2021年2月4日 22:10 > 收件人: Laszlo Ersek; devel@edk2.groups.io; yufei.li...@jumple.com > 抄送: Maciej Rabeda; Wu, Jiaxin > 主题: RE: [edk2-devel] How can I receive EAP packets? > >> -----Original Message----- >> From: Laszlo Ersek <ler...@redhat.com> >> Sent: 2021年2月4日 17:56 >> To: devel@edk2.groups.io; yufei.li...@jumple.com >> Cc: Maciej Rabeda <maciej.rab...@linux.intel.com>; Fu, Siyuan >> <siyuan...@intel.com>; Wu, Jiaxin <jiaxin...@intel.com> >> Subject: Re: [edk2-devel] How can I receive EAP packets? >> >>> On 02/03/21 04:20, 梁宇飞 wrote: >>> Hi,everyone, I am using edkii to write EAP certified loader, I use >>> EFI_ SIMPLE_ NETWORK.Transmit () to contract, want to use EFI_ >>> 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. > 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 >>> received. How can I receive EAP package? I think there is a saying >>> 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 >>> EFI_ EAP_ Protocol, I want to use this interface for user name and >>> password authentication, but look at EFI_ EAP_ Protocol interface, >>> 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. >> >> Thanks >> Laszlo > > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#71348): https://edk2.groups.io/g/devel/message/71348 Mute This Topic: https://groups.io/mt/80401337/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-