mirror_frr/tests
Philippe Guibert 2dc693e808 topotests: fix bmp_collector handling of empty as-path
When configuring the bgp_bmp test with an additional
peer that sends empty AS-PATH, the bmp collector is stopping:

> [2024-10-28 17:41:51] Finished dissecting data from ('192.0.2.1', 33922)
> [2024-10-28 17:41:52] Data received from ('192.0.2.1', 33922): length 195
> [2024-10-28 17:41:52] Got message type: <class 'bmp.BMPRouteMonitoring'>
> [2024-10-28 17:41:52] unpack_from requires a buffer of at least 2 bytes for unpacking 2 bytes at offset 0 (actual buffer size is 0)
> [2024-10-28 17:41:52] TCP session closed with ('192.0.2.1', 33922)
> [2024-10-28 17:41:52] Server shutting down on 192.0.2.10:1789

The parser attempts to read an empty AS-path and considers the length
value as a length in bytes, whereas RFC mentions this value as
definining the number of AS-PAths. Fix this in the parser.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2024-12-02 16:54:04 +01:00
..
bgpd lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
helpers tests: remove strncpy() use 2024-10-22 14:51:25 +02:00
isisd Merge pull request #17156 from opensourcerouting/eradicate-strncpy 2024-11-19 09:42:39 -05:00
lib lib: Fix Lua script unit test 2024-11-18 17:25:08 +02:00
ospf6d ospf6d: move lsa structs to ospf6_lsa.h 2024-09-16 18:38:16 +10:00
ospfd *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
topotests topotests: fix bmp_collector handling of empty as-path 2024-12-02 16:54:04 +01:00
zebra zebra, test: mark mpls label chunks as dynamic or static 2023-10-18 09:41:02 +02:00
.gitignore tests: Ignore test_darr for git 2023-07-08 22:41:34 +03:00
Makefile
pytest.ini
runtests.py
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00