Commit 5acf736d83 for frr

commit 5acf736d8337d66e47447d9f08c0bc514911e79a
Author: Yufan Zhou <zyivon1019@gmail.com>
Date:   Tue Dec 1 18:34:10 2026 -0800

    bgpd: fix ORF REMOVE handled as REMOVE-ALL

    The ORF Action constants used the wrong encoding. RFC 5291 encodes
    Action in the two most significant bits of an entry's first octet, so
    REMOVE is 0x40 and REMOVE-ALL is 0x80. bgpd defined them as 0x80 and
    0xC0.

    In bgp_route_refresh_receive(), the Remove-All check
    `*p_pnt & ORF_COMMON_PART_REMOVE_ALL` uses 0xC0 as a mask, which
    matches any non-zero Action. Even bgpd's own REMOVE value (0x80) took
    the Remove-All path, and so did a standard REMOVE (0x40). Removing one
    entry deleted the peer's whole ORF.

    Use the RFC values 0x40 and 0x80.

    Signed-off-by: Yufan Zhou <zyivon1019@gmail.com>

diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h
index dbb75fa4a9..16f3e992d5 100644
--- a/bgpd/bgp_packet.h
+++ b/bgpd/bgp_packet.h
@@ -32,8 +32,8 @@ DECLARE_HOOK(bgp_packet_send,

 /* ORF Common part flag */
 #define ORF_COMMON_PART_ADD        0x00
-#define ORF_COMMON_PART_REMOVE     0x80
-#define ORF_COMMON_PART_REMOVE_ALL 0xC0
+#define ORF_COMMON_PART_REMOVE	   0x40
+#define ORF_COMMON_PART_REMOVE_ALL 0x80
 #define ORF_COMMON_PART_PERMIT     0x00
 #define ORF_COMMON_PART_DENY       0x20