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

pull/2/head
Lorenzo Cogotti 4 years ago
parent 85c59f7514
commit 609620c058

@ -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;

Loading…
Cancel
Save