]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/zebra.h
[zserv] Extend Zserv header with version information and marker field
[mirror_frr.git] / lib / zebra.h
index cf7998f23553e3f87373cf0b17f2782f6564807c..00f13f575cc21c328ddabbab1a53b856de2f83d7 100644 (file)
@@ -397,6 +397,12 @@ struct in_pktinfo
 #define ZEBRA_ROUTER_ID_UPDATE            22
 #define ZEBRA_MESSAGE_MAX                 23
 
+/* Marker value used in new Zserv, in the byte location corresponding
+ * 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
+
 /* Zebra route's types. */
 #define ZEBRA_ROUTE_SYSTEM               0
 #define ZEBRA_ROUTE_KERNEL               1
@@ -493,9 +499,9 @@ extern char zebra_route_char(unsigned int route_type);
 typedef u_int16_t afi_t;
 typedef u_int8_t safi_t;
 
-/* Zebra types. */
+/* Zebra types. Used in Zserv message header. */
 typedef u_int16_t zebra_size_t;
-typedef u_int8_t zebra_command_t;
+typedef u_int16_t zebra_command_t;
 
 /* FIFO -- first in first out structure and macros.  */
 struct fifo