2013-04-11 3 views
0

je veux envoyer une trame Ethernet de FPGA à mon PC pour Wireshark recevoirQu'est-ce qu'un exemple d'image ethernet qui peut être envoyé?

je passe la charge utile dans le générateur CRC pour obtenir le résultat CRC, mais je pense que l'erreur CRC comme Wireshark ne reçoit pas quelque chose qui est ma charge utile

i got 2 idées

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

Si tout ce que vous avez besoin est une trame Ethernet, pourquoi ne pas utiliser Wireshark pour capturer les paquets de vous naviguez sur ce site? – Josh

+0

La réponse à cette question peut être utile, bien que je ne pense pas que ce soit un doublon: http://stackoverflow.com/questions/12497608/calculate-and-validate-ethernet-fcs-crc32-in-vhdl –

Répondre

0

Utilisez vos outils FPGA pour créer un noyau Ethernet. Cela créera généralement un banc d'essai pour vous aussi. Exécutez ce testbench, notez les valeurs des données produites. Comme autre alternative, il existe des bibliothèques Python que j'ai utilisées dans le passé pour créer des paquets Ethernet.

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

Je ne l'ai jamais utilisé, mais il semble que cela pourrait être utile:

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

Questions connexes