【问题标题】:What is a ethernet frame sample which can be sent?什么是可以发送的以太网帧样本?
【发布时间】:2013-04-11 13:04:51
【问题描述】:

我想将以太网帧从 FPGA 发送到我的 PC 以供 Wireshark 接收

我将有效负载传递给 CRC 生成器以获取 CRC 结果,但我猜是 CRC 错误,因为 wireshark 没有收到任何我的有效负载

我有 2 个想法

1. find a ethernet frame in hex code in internet and copy to VHDL to send in order to make sure no CRC error and check whether it send or not? could you post a correct ethernet frame in hex code here?

1b. any free CRC generator code in VHDL available in internet? and any free CRC generator code in C++ language or C# language or Java language for hard code CRC in ethernet frame?

2. use layer 2 programming in ubuntu to send a ethernet frame to another computer,
whether i can send and display the ethernet frame which i send in ubuntu or i need to capture with wireshark in another computer?

【问题讨论】:

  • 如果您只需要一个以太网框架,为什么不使用 Wireshark 捕获您浏览本网站的数据包?
  • 这个问题的答案可能会有所帮助,虽然我不认为它是重复的:stackoverflow.com/questions/12497608/…

标签: vhdl fpga crc32 raw-ethernet


【解决方案1】:

使用您的 FPGA 工具创建以太网内核。这通常也会为您创建一个测试平台。运行该测试台,记下生成的数据的值。

作为另一种选择,我过去曾使用一些 Python 库来创建以太网数据包。

http://code.google.com/p/dpkt/source/browse/trunk/dpkt/ethernet.py

我从未使用过,但它看起来可能会有所帮助:

http://packeth.sourceforge.net/packeth/Home.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-27
    • 1970-01-01
    • 2014-03-10
    • 1970-01-01
    相关资源
    最近更新 更多