什么是可以发送的以太网帧样本?

什么是可以发送的以太网帧样本?

问题描述:

我想从FPGA一个以太网帧发送到我的电脑为Wireshark来接收什么是可以发送的以太网帧样本?

我通过有效载荷送入CRC发生器获得CRC的结果,但我想作为Wireshark的没有收到这是我的有效载荷

任何事情CRC错误

我得到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? 
+0

如果你需要的是以太网帧,为什么不使用Wireshark来捕获数据包你浏览到这个网站? – Josh 2013-04-11 15:57:14

+0

这个问题的答案可能会有帮助,但我不认为它是重复的:http://*.com/questions/12497608/calculate-and-validate-ethernet-fcs-crc32-in-vhdl – 2013-04-12 14:57:06

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

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

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

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

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