[bgpgrep/bgpgrep_vmfunc] Make -loops check for appropriate BGP message type
This commit is contained in:
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…
Reference in New Issue