We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PTF provides a lot of very convenient functions to form test packets (simple_*_packet())
simple_*_packet()
One thing that they do not allow is specifying the actual payload. Not only that, different functions use different payload for whatever reason.
For example, simple_tcp_packet uses:
pkt = pkt / codecs.decode("".join(["%02x" % (x % 256) for x in range(pktlen - len(pkt))]), "hex")
whereas simple_tcpv6_packet uses:
pkt /= "D" * (pktlen - len(pkt))
This makes direct comparisons a little difficult.
Here are two things which can changed:
The text was updated successfully, but these errors were encountered:
Good idea 👍 The code of the testutils.py is in many places redundant. In the beginning, we can extract a "payload method", and standardize it.
testutils.py
Sorry, something went wrong.
No branches or pull requests
PTF provides a lot of very convenient functions to form test packets (
simple_*_packet()
)One thing that they do not allow is specifying the actual payload. Not only that, different functions use different payload for whatever reason.
For example, simple_tcp_packet uses:
whereas simple_tcpv6_packet uses:
This makes direct comparisons a little difficult.
Here are two things which can changed:
The text was updated successfully, but these errors were encountered: