p4lang / ptf

Packet Test Framework
Apache License 2.0
144 stars 99 forks source link

FCS support in PTF #112

Open eshnajain opened 4 years ago

eshnajain commented 4 years ago

Hello, I m testing packet flow on my DUT, the packet is correctly sent and received by the PTF host. But the verification is failing at the PTF host, as the DUT is inserting FCS(frame check sequence) in the packet. Is there a way to add FCS to packet generated in PTF ?

hesingh commented 4 years ago

If you see on the PTF main page, you will see a "ternary matching" using `set_do_not_care_scapy'. Use the method to ignore FCS bits.

Also, for the same reason give here for why Scapy doesn't support FCS, PTF may not.