From: Donald Sharp Date: Sun, 2 Jun 2019 19:29:10 +0000 (-0400) Subject: lib: Move ZEBRA_HEADER_MARKER to header it belongs in X-Git-Tag: base_7.2~249^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8ee06b2c462bdcc43605b632b9953aac397b7cda;p=matthieu%2Ffrr.git lib: Move ZEBRA_HEADER_MARKER to header it belongs in The ZEBRA_HEADER_MARKER is part of the zapi protocol Move it to the zclient.h header. Signed-off-by: Donald Sharp --- diff --git a/lib/zclient.h b/lib/zclient.h index 5f529dcb69..c707f498c4 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -38,6 +38,12 @@ #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 diff --git a/lib/zebra.h b/lib/zebra.h index 35d0cfbf5a..6adc9904e5 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -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