Skip to content
Snippets Groups Projects
Commit de41b3ce authored by Pierre LALET's avatar Pierre LALET
Browse files

Add unit tests for Sebek

parent 36f7a819
No related branches found
No related tags found
No related merge requests found
# Sebek layer unit tests
#
# Type the following command to launch start the tests:
# $ test/run_tests -P "load_contrib('sebek')" -t scapy/contrib/sebek.uts
+ Sebek protocol
= Layer binding 1
pkt = IP() / UDP() / SebekHead() / SebekV1()
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 1
= Packet dissection 1
pkt = IP(str(pkt))
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 1
= Layer binding 2
pkt = IP() / UDP() / SebekHead() / SebekV2Sock()
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 2 and pkt[SebekHead].type ==2
= Packet dissection 2
pkt = IP(str(pkt))
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 2 and pkt[SebekHead].type ==2
= Layer binding 3
pkt = IPv6()/UDP()/SebekHead()/SebekV3()
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 3
= Packet dissection 3
pkt = IPv6(str(pkt))
pkt.sport == pkt.dport == 1101 and pkt[SebekHead].version == 3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment