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

master
Lorenzo Cogotti 3 years ago
parent 85c59f7514
commit 609620c058

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

Loading…
Cancel
Save