接收以太网帧 [英] Receiving Ethernet frames

查看:114
本文介绍了接收以太网帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以向我指出可以用来读取以太网帧的.Net类的正确方向.特别是我想读取多播以太网帧(LLDP).

我可以找到的唯一文档与Socket类有关,但是我认为这仅适用于IP.我感兴趣的帧是以太网帧,但不包含IP数据包.理想情况下,我想监听发往特定多播MAC地址的任何以太网帧...

我真的很感激朝着正确方向前进.

非常感谢,

Peter

Hi,

Could someone please point me in the right direction as to which .Net classes I can use to read Ethernet frames. In particular I want to read multicast Ethernet frames (LLDP).

The only documentation I can find relates to the Socket class, but I think this only works with IP. The frames I''m interested are Ethernet frames, but do not hold an IP packet. Ideally I would like to listen for any Ethernet frame destined for a particular multicast MAC address...

I''d really appreciate a nudge in the right direction.

Many thanks,

Peter

推荐答案

.NET Framework中没有用于处理该级别网络通信的类.

您必须使用WinPCap这样的第三方库来执行类似的操作.
There are no classes in the .NET Framework that deal with network communication on that level.

You''d have to use a third party library, like WinPCap, to do something like this.


这篇关于接收以太网帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆