]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Update ZAPI to version 4 and HEADER_MARKER to 254
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Jan 2017 13:03:14 +0000 (08:03 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Jan 2017 13:05:39 +0000 (08:05 -0500)
Update the ZEBRA_HEADER_MARKER to 254.  This will differentiate
ourselves from Quagga.  Zebra should not listen to people not
properly using the right programs now.

Update the ZAPI version number to 4.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
doc/protocol.texi
lib/zclient.h
lib/zebra.h

index f2c8da43016577640ff971c90c53cab0ca470eff..7e8a96dc5df615aa97aa5389d3c620d88a38f88b 100644 (file)
@@ -25,8 +25,11 @@ enough to allow for future extensions to done compatibly through
 seperate commands.
 
 Version 0 is used by all versions of GNU Zebra as of this writing, and
-versions of Quagga up to and including Quagga 0.98. Version 1 will be
-used as of Quagga 1.0.  Version 2 will be used as of Frr 2.0.
+versions of Quagga up to and including Quagga 0.98. Version 2 was created
+for 0.99.21 of Quagga.  Version 3 designates VRF compatibility and was
+released in 1.0. Version 4 will be used as of Frr 2.0 to indicate that
+we are a different Routing Suite now and to hopefully prevent accidental
+Quagga <-> FRR issues.
 
 @appendixsection Zebra Protocol Definition
 @appendixsubsec Zebra Protocol Header (version 0)
index 7ea5bc963acf6a7738ce3807c3559620e41d1c07..4312cdc83ce1321587083893f33bd638ebaf10b0 100644 (file)
@@ -123,7 +123,7 @@ struct zserv_header
                          * always set to 255 in new zserv.
                          */
   uint8_t version;
-#define ZSERV_VERSION  3
+#define ZSERV_VERSION  4
   vrf_id_t vrf_id;
   uint16_t command;
 };
index a67713c30d5e9d129bb3090d095ff4a423350047..420f2371761458e9fb627c65a9548cb2eadf156d 100644 (file)
@@ -411,7 +411,7 @@ typedef enum {
  * the command value in the old zserv header. To allow old and new
  * Zserv headers to be distinguished from each other.
  */
-#define ZEBRA_HEADER_MARKER              255
+#define ZEBRA_HEADER_MARKER              254
 
 /* Zebra route's types are defined in route_types.h */
 #include "route_types.h"