答复: [edk2-devel] How can I receive EAP packets?

梁宇飞 yufei.liang at vhost3.sc-1.0002.vhost058.cn
Fri Feb 5 07:16:04 UTC 2021


Do you have any examples or documentation of using MNP?

Best regards
Yufei liang
-----邮件原件-----
发件人: 梁宇飞 [mailto:yufei.liang at jumple.com] 
发送时间: 2021年2月5日 8:48
收件人: 'Fu, Siyuan'; 'Laszlo Ersek'; 'devel at 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.fu at intel.com]
发送时间: 2021年2月4日 22:10
收件人: Laszlo Ersek; devel at edk2.groups.io; yufei.liang at jumple.com
抄送: Maciej Rabeda; Wu, Jiaxin
主题: RE: [edk2-devel] How can I receive EAP packets?

> -----Original Message-----
> From: Laszlo Ersek <lersek at redhat.com>
> Sent: 2021年2月4日 17:56
> To: devel at edk2.groups.io; yufei.liang at jumple.com
> Cc: Maciej Rabeda <maciej.rabeda at linux.intel.com>; Fu, Siyuan 
> <siyuan.fu at intel.com>; Wu, Jiaxin <jiaxin.wu at 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 (#71299): https://edk2.groups.io/g/devel/message/71299
Mute This Topic: https://groups.io/mt/80400942/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list