esp32_bluetooth_classic_sni.../libs/scapy/contrib/carp.uts
Matheus Eduardo Garbelini 86890704fd initial commit
todo: add documentation & wireshark dissector
2021-08-31 19:51:03 +08:00

11 lines
278 B
Text
Executable file

% Regression tests for the avs module
+ Basic CARP test
= Build
pkt = Ether()/IP()/CARP()
pkt = Ether(raw(pkt))
assert CARP in pkt
assert pkt[CARP].chksum
assert pkt[CARP].build_hmac_sha1(ip4l=['192.168.0.111']) == b'\xbd\x82\xc7\x8f6\x1a\x0e\xff\xcfl\x14\xa2v\xedW;>ic\xa3'