Browse Source

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

master
Lorenzo Cogotti 1 year ago
parent
commit
609620c058
  1. 4
      tools/bgpgrep/bgpgrep_vmfunc.c

4
tools/bgpgrep/bgpgrep_vmfunc.c

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