]> git.puffer.fish Git - mirror/frr.git/commitdiff
BGPD: fix invalid bmp POST POLICY flag 11180/head
authorFrancois Dumontet <francois.dumontet@6wind.com>
Wed, 11 May 2022 13:33:12 +0000 (15:33 +0200)
committerFrancois Dumontet <francois.dumontet@6wind.com>
Wed, 11 May 2022 14:08:56 +0000 (16:08 +0200)
description:
BMP Per Peer Headers of Route Monitoring messages with UPDATE and
WITHDRAW notificatiosn ( not the sync ones at Initiation) are
all typed as POST POLICY.

fix:
notify Pre policy UPDATES AND WITHDRAWS with  Per Peer Header type set
to PRE POLICY (0)

Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
bgpd/bgp_bmp.c

index 47922985d96af68bfd3c228d639a482f8b722c77..109f70f78f4ce990241c54b292a612371dcfe705 100644 (file)
@@ -1189,7 +1189,7 @@ static bool bmp_wrqueue(struct bmp *bmp, struct pullwr *pullwr)
                        if (adjin->peer == peer)
                                break;
                }
-               bmp_monitor(bmp, peer, BMP_PEER_FLAG_L, &bqe->p, prd,
+               bmp_monitor(bmp, peer, 0, &bqe->p, prd,
                            adjin ? adjin->attr : NULL, afi, safi,
                            adjin ? adjin->uptime : monotime(NULL));
                written = true;