esp32_bluetooth_classic_sni.../libs/scapy/contrib/carp.uts

12 lines
278 B
Text
Raw Normal View History

% 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'