Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sendpkt: Allow definitions via Scapy as well as hex bytes.
When writing tests it can be very difficult to understand what the test is doing without properly documenting the test. Added to that difficulty is when a stream of bytes gets posted with the patch as a packet definition. We then need to write out detailed descriptions of the packets, and tend to get packet strings that break line length parsers (leading to errors applying patches. With this change, we can write out clear descriptions of packets that make use of Scapy to generate the actual bytes strings. This should serve as accurate documentation, while also trimming the amount of bytes a developer needs to write to represent a packet. Signed-off-by: Aaron Conole <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
- Loading branch information