]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Move BGP_CAP_LLGR_MIN_PACKET_LEN to headers file
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 7 Sep 2023 07:17:52 +0000 (10:17 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 13 Sep 2023 08:30:47 +0000 (11:30 +0300)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_open.c
bgpd/bgp_open.h

index da70f67c188627f9ea00cdb7c1558650cd39f005..6ee5b5dc5cda7aed11ef6b67d369ad5ae7291eda 100644 (file)
@@ -576,18 +576,6 @@ static int bgp_capability_restart(struct peer *peer,
 static int bgp_capability_llgr(struct peer *peer,
                               struct capability_header *caphdr)
 {
-/*
- * +--------------------------------------------------+
- * | Address Family Identifier (16 bits)              |
- * +--------------------------------------------------+
- * | Subsequent Address Family Identifier (8 bits)    |
- * +--------------------------------------------------+
- * | Flags for Address Family (8 bits)                |
- * +--------------------------------------------------+
- * | Long-lived Stale Time (24 bits)                  |
- * +--------------------------------------------------+
- */
-#define BGP_CAP_LLGR_MIN_PACKET_LEN 7
        struct stream *s = BGP_INPUT(peer);
        size_t end = stream_get_getp(s) + caphdr->length;
 
index 1d005efd02d2af2dedf08b78415aaf4d6463cfdd..a92c56d1b50820a9350798fb711022216a6297f6 100644 (file)
@@ -25,6 +25,19 @@ struct graceful_restart_af {
        uint8_t flag;
 };
 
+/*
+ * +--------------------------------------------------+
+ * | Address Family Identifier (16 bits)              |
+ * +--------------------------------------------------+
+ * | Subsequent Address Family Identifier (8 bits)    |
+ * +--------------------------------------------------+
+ * | Flags for Address Family (8 bits)                |
+ * +--------------------------------------------------+
+ * | Long-lived Stale Time (24 bits)                  |
+ * +--------------------------------------------------+
+ */
+#define BGP_CAP_LLGR_MIN_PACKET_LEN 7
+
 /* Capability Code */
 #define CAPABILITY_CODE_MP              1 /* Multiprotocol Extensions */
 #define CAPABILITY_CODE_REFRESH         2 /* Route Refresh Capability */