public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* How can I receive EAP packets?
@ 2021-02-03  3:20 梁宇飞
  2021-02-04  9:56 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 7+ messages in thread
From: 梁宇飞 @ 2021-02-03  3:20 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

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 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 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?
Thank you very much!

[-- Attachment #2: Type: text/html, Size: 800 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] How can I receive EAP packets?
  2021-02-03  3:20 How can I receive EAP packets? 梁宇飞
@ 2021-02-04  9:56 ` Laszlo Ersek
  2021-02-04 10:09   ` 答复: " 梁宇飞
  2021-02-04 14:09   ` Siyuan, Fu
  0 siblings, 2 replies; 7+ messages in thread
From: Laszlo Ersek @ 2021-02-04  9:56 UTC (permalink / raw)
  To: devel, yufei.liang; +Cc: Maciej Rabeda, Siyuan Fu, Jiaxin Wu

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
> 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
> 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?
I don't know anything about "EAP", but I've CC'd the NetworkPkg owners.

Thanks
Laszlo


^ permalink raw reply	[flat|nested] 7+ messages in thread

* 答复: [edk2-devel] How can I receive EAP packets?
  2021-02-04  9:56 ` [edk2-devel] " Laszlo Ersek
@ 2021-02-04 10:09   ` 梁宇飞
  2021-02-04 14:09   ` Siyuan, Fu
  1 sibling, 0 replies; 7+ messages in thread
From: 梁宇飞 @ 2021-02-04 10:09 UTC (permalink / raw)
  To: 'Laszlo Ersek', devel
  Cc: 'Maciej Rabeda', 'Siyuan Fu', 'Jiaxin Wu'

Ok, Thank you!

Best regards
Yufei liang

-----邮件原件-----
发件人: Laszlo Ersek [mailto:lersek@redhat.com] 
发送时间: 2021年2月4日 17:56
收件人: devel@edk2.groups.io; yufei.liang@jumple.com
抄送: Maciej Rabeda; Siyuan Fu; Jiaxin Wu
主题: 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 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 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?
I don't know anything about "EAP", but I've CC'd the NetworkPkg owners.

Thanks
Laszlo





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] How can I receive EAP packets?
  2021-02-04  9:56 ` [edk2-devel] " Laszlo Ersek
  2021-02-04 10:09   ` 答复: " 梁宇飞
@ 2021-02-04 14:09   ` Siyuan, Fu
  2021-02-05  0:48     ` 答复: " 梁宇飞
  2021-02-05  7:16     ` 梁宇飞
  1 sibling, 2 replies; 7+ messages in thread
From: Siyuan, Fu @ 2021-02-04 14:09 UTC (permalink / raw)
  To: Laszlo Ersek, devel@edk2.groups.io, yufei.liang@jumple.com
  Cc: Maciej Rabeda, Wu, Jiaxin

> -----Original Message-----
> From: Laszlo Ersek <lersek@redhat.com>
> Sent: 2021年2月4日 17:56
> To: devel@edk2.groups.io; yufei.liang@jumple.com
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Fu, Siyuan
> <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* 答复: [edk2-devel] How can I receive EAP packets?
  2021-02-04 14:09   ` Siyuan, Fu
@ 2021-02-05  0:48     ` 梁宇飞
  2021-02-05  7:16     ` 梁宇飞
  1 sibling, 0 replies; 7+ messages in thread
From: 梁宇飞 @ 2021-02-05  0:48 UTC (permalink / raw)
  To: 'Fu, Siyuan', 'Laszlo Ersek', devel
  Cc: 'Maciej Rabeda', 'Wu, Jiaxin'

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@intel.com] 
发送时间: 2021年2月4日 22:10
收件人: Laszlo Ersek; devel@edk2.groups.io; yufei.liang@jumple.com
抄送: Maciej Rabeda; Wu, Jiaxin
主题: RE: [edk2-devel] How can I receive EAP packets?

> -----Original Message-----
> From: Laszlo Ersek <lersek@redhat.com>
> Sent: 2021年2月4日 17:56
> To: devel@edk2.groups.io; yufei.liang@jumple.com
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Fu, Siyuan 
> <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* 答复: [edk2-devel] How can I receive EAP packets?
  2021-02-04 14:09   ` Siyuan, Fu
  2021-02-05  0:48     ` 答复: " 梁宇飞
@ 2021-02-05  7:16     ` 梁宇飞
  2021-02-05  8:03       ` Siyuan, Fu
  1 sibling, 1 reply; 7+ messages in thread
From: 梁宇飞 @ 2021-02-05  7:16 UTC (permalink / raw)
  To: 'Fu, Siyuan', 'Laszlo Ersek', devel
  Cc: 'Maciej Rabeda', 'Wu, Jiaxin'

Do you have any examples or documentation of using MNP?

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

> -----Original Message-----
> From: Laszlo Ersek <lersek@redhat.com>
> Sent: 2021年2月4日 17:56
> To: devel@edk2.groups.io; yufei.liang@jumple.com
> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Fu, Siyuan 
> <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [edk2-devel] How can I receive EAP packets?
  2021-02-05  7:16     ` 梁宇飞
@ 2021-02-05  8:03       ` Siyuan, Fu
  0 siblings, 0 replies; 7+ messages in thread
From: Siyuan, Fu @ 2021-02-05  8:03 UTC (permalink / raw)
  To: devel@edk2.groups.io, yufei.liang@jumple.com
  Cc: Laszlo Ersek, Maciej Rabeda, Wu, Jiaxin

You may check the Ip4Dxe as example.

> 在 2021年2月5日,15:16,梁宇飞 <yufei.liang@jumple.com> 写道:
> 
> Do you have any examples or documentation of using MNP?
> 
> Best regards
> Yufei liang
> -----邮件原件-----
> 发件人: 梁宇飞 [mailto:yufei.liang@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.fu@intel.com]
> 发送时间: 2021年2月4日 22:10
> 收件人: Laszlo Ersek; devel@edk2.groups.io; yufei.liang@jumple.com
> 抄送: Maciej Rabeda; Wu, Jiaxin
> 主题: RE: [edk2-devel] How can I receive EAP packets?
> 
>> -----Original Message-----
>> From: Laszlo Ersek <lersek@redhat.com>
>> Sent: 2021年2月4日 17:56
>> To: devel@edk2.groups.io; yufei.liang@jumple.com
>> Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>; Fu, Siyuan 
>> <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@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
> 
> 
> 
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-05  8:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-03  3:20 How can I receive EAP packets? 梁宇飞
2021-02-04  9:56 ` [edk2-devel] " Laszlo Ersek
2021-02-04 10:09   ` 答复: " 梁宇飞
2021-02-04 14:09   ` Siyuan, Fu
2021-02-05  0:48     ` 答复: " 梁宇飞
2021-02-05  7:16     ` 梁宇飞
2021-02-05  8:03       ` Siyuan, Fu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox