]> git.proxmox.com Git - mirror_frr.git/commit - tests/Makefile.am
tests: Add code to allow us to test packet handling in bgp easier
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 6 Nov 2017 15:53:01 +0000 (10:53 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 6 Nov 2017 15:53:01 +0000 (10:53 -0500)
commitfaf4cc64f437cfa3967be55739c5aa00e2354873
tree455eb62ba485c738acfbc7ba0b14f70584ac8561
parent5f615b10557ff6c33505a77496abbdec17e321b7
tests: Add code to allow us to test packet handling in bgp easier

Fuzzing with tools like afl requires the ability to quickly/easily
call a function to test it's input.  In the case of bgp we
need the ability to test bgp's packet handler quickly.  This
added program bgpd/test_packet takes a file name as input
that it treats as normal bgp communication between itself
and a peer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/Makefile.am
tests/bgpd/test_packet.c [new file with mode: 0644]