我想从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?
答案 0 :(得分:0)
使用FPGA工具创建以太网核心。这通常也会为您创建一个测试平台。运行该测试平台,记下所生成数据的值。
作为另一种选择,我过去使用过一些Python库来创建以太网数据包。
http://code.google.com/p/dpkt/source/browse/trunk/dpkt/ethernet.py
我从未使用过这个,但它看起来可能会有所帮助: