]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Move ZEBRA_HEADER_MARKER to header it belongs in
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 19:29:10 +0000 (15:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 20:07:48 +0000 (16:07 -0400)
The ZEBRA_HEADER_MARKER is part of the zapi protocol
Move it to the zclient.h header.

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

index 5f529dcb69e2a86c4eb3dcd2434be1cf0438bc8e..c707f498c4b01b0c27b2a86ea9d324f3640e9167 100644 (file)
 
 #include "mlag.h"
 
+/* 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              254
+
 /* For input/output buffer to zebra. */
 #define ZEBRA_MAX_PACKET_SIZ          16384U
 
index 35d0cfbf5ab91321013c2e61350a47bf2c8c4365..6adc9904e539ae362b45996f315ffd1a25acf6a6 100644 (file)
@@ -343,12 +343,6 @@ struct in_pktinfo {
 /* default zebra TCP port for zclient */
 #define ZEBRA_PORT                     2600
 
-/* 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              254
-
 /*
  * The compiler.h header is used for anyone using the CPP_NOTICE
  * since this is universally needed, let's add it to zebra.h