mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-03 15:44:17 +00:00
![]() Since the previous commit, if a router capability subTLV is not
readable, the previously read subTLVs are kept.
Update of the ISIS fuzz test.
> $ wuschl rebuild tests/isisd/test_fuzz_isis_tlv
> $ gzip -9 tests/isisd/test_fuzz_isis_tlv_tests.h
> $ ./test_fuzz_isis_tlv 2>/dev/null | grep failed
> Test 139 failed, output differs.
> Test 150 failed, output differs.
> 2 of 405 tests failed.
>
> $ ./test_fuzz_isis_tlv 139 2>/dev/null
> Test 139 failed, output differs.
> Expected output:
> Unpack log:
> Unpacking 564 bytes of TLVs...
> Unpacking TLV...
> Found TLV of type 193 and len 13.
> Skipping unknown TLV 193 (13 bytes)
> Unpacking TLV...
> Found TLV of type 0 and len 0.
> Skipping unknown TLV 0 (0 bytes)
> Unpacking TLV...
> Found TLV of type 0 and len 0.
> Skipping unknown TLV 0 (0 bytes)
> Unpacking TLV...
> Found TLV of type 242 and len 12.
> Unpacking Router Capability TLV...
> WARNING: Router Capability subTLV length too large compared to expected size
> Unpacked TLVs:
> Received output:
> Unpack log:
> Unpacking 564 bytes of TLVs...
> Unpacking TLV...
> Found TLV of type 193 and len 13.
> Skipping unknown TLV 193 (13 bytes)
> Unpacking TLV...
> Found TLV of type 0 and len 0.
> Skipping unknown TLV 0 (0 bytes)
> Unpacking TLV...
> Found TLV of type 0 and len 0.
> Skipping unknown TLV 0 (0 bytes)
> Unpacking TLV...
> Found TLV of type 242 and len 12.
> Unpacking Router Capability TLV...
> WARNING: Router Capability subTLV length too large compared to expected size
> Unpacked TLVs:
> Router Capability: 253.212.128.242 , D:1, S:1
>
> $ ./test_fuzz_isis_tlv 150 2>/dev/null
> Test 150 failed, output differs.
> Expected output:
> Unpack log:
> Unpacking 403 bytes of TLVs...
> Unpacking TLV...
> Found TLV of type 129 and len 13.
> Unpacking Protocols Supported TLV...
> Protocols Supported: 73, 16, 255, 255, 255, 101, 10, 11, 11, 11, 11, 11, 11
> Unpacking TLV...
> Found TLV of type 11 and len 11.
> Skipping unknown TLV 11 (11 bytes)
> Unpacking TLV...
> Found TLV of type 242 and len 12.
> Unpacking Router Capability TLV...
> WARNING: Router Capability subTLV length too large compared to expected size
> Unpacked TLVs:
> Protocols Supported: 73, 16, 255, 255, 255, 101, 10, 11, 11, 11, 11, 11, 11
> Received output:
> Unpack log:
> Unpacking 403 bytes of TLVs...
> Unpacking TLV...
> Found TLV of type 129 and len 13.
> Unpacking Protocols Supported TLV...
> Protocols Supported: 73, 16, 255, 255, 255, 101, 10, 11, 11, 11, 11, 11, 11
> Unpacking TLV...
> Found TLV of type 11 and len 11.
> Skipping unknown TLV 11 (11 bytes)
> Unpacking TLV...
> Found TLV of type 242 and len 12.
> Unpacking Router Capability TLV...
> WARNING: Router Capability subTLV length too large compared to expected size
> Unpacked TLVs:
> Protocols Supported: 73, 16, 255, 255, 255, 101, 10, 11, 11, 11, 11, 11, 11
> Router Capability: 253.212.128.242 , D:1, S:1
Link: https://pypi.org/project/wuschl/
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
.gitignore | ||
subdir.am | ||
test_common.c | ||
test_common.h | ||
test_fuzz_isis_tlv_tests.h.gz | ||
test_fuzz_isis_tlv.c | ||
test_fuzz_isis_tlv.py | ||
test_isis_lspdb.c | ||
test_isis_lspdb.py | ||
test_isis_spf.c | ||
test_isis_spf.in | ||
test_isis_spf.py | ||
test_isis_spf.refout | ||
test_isis_vertex_queue.c | ||
test_isis_vertex_queue.py | ||
test_topologies.c |