public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Siyuan, Fu" <siyuan.fu@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"yufei.liang@jumple.com" <yufei.liang@jumple.com>
Cc: Laszlo Ersek <lersek@redhat.com>,
	Maciej Rabeda <maciej.rabeda@linux.intel.com>,
	"Wu, Jiaxin" <jiaxin.wu@intel.com>
Subject: Re: [edk2-devel] How can I receive EAP packets?
Date: Fri, 5 Feb 2021 08:03:09 +0000	[thread overview]
Message-ID: <9C93F6B4-2992-42F0-9F6E-9607956A5AB7@intel.com> (raw)
In-Reply-To: <000001d6fb8e$c4493c30$4cdbb490$@jumple.com>+59F1496E29A49CEA

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
> 
> 
> 
> 
> 
> 
> 
> 
> 

      reply	other threads:[~2021-02-05  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9C93F6B4-2992-42F0-9F6E-9607956A5AB7@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox