[bgpgrep/bgpgrep_vmfunc] Make -loops check for appropriate BGP message type

This commit is contained in:
Lorenzo Cogotti 2021-06-08 23:50:38 +02:00
parent 85c59f7514
commit 609620c058
1 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,10 @@ void BgpgrepF_FindAsLoops(Bgpvm *vm)
Asntree t;
Asn asn;
const Bgphdr *hdr = BGP_HDR(vm->msg);
if (hdr->type != BGP_UPDATE)
goto nomatch;
Sint32 pos = 0;
Boolean foundLoop = FALSE;