summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 20c285cf7f..c5e844933c 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -1551,15 +1551,16 @@ bool zapi_ipset_notify_decode(struct stream *s, uint32_t *unique,
enum zapi_ipset_notify_owner *note)
{
uint32_t uni;
+ uint16_t notew;
- STREAM_GET(note, s, sizeof(*note));
+ STREAM_GETW(s, notew);
STREAM_GETL(s, uni);
if (zclient_debug)
zlog_debug("%s: %u", __func__, uni);
*unique = uni;
-
+ *note = (enum zapi_ipset_notify_owner)notew;
return true;
stream_failure:
@@ -1571,8 +1572,9 @@ bool zapi_ipset_entry_notify_decode(struct stream *s, uint32_t *unique,
enum zapi_ipset_entry_notify_owner *note)
{
uint32_t uni;
+ uint16_t notew;
- STREAM_GET(note, s, sizeof(*note));
+ STREAM_GETW(s, notew);
STREAM_GETL(s, uni);
@@ -1581,6 +1583,7 @@ bool zapi_ipset_entry_notify_decode(struct stream *s, uint32_t *unique,
if (zclient_debug)
zlog_debug("%s: %u", __func__, uni);
*unique = uni;
+ *note = (enum zapi_ipset_entry_notify_owner)notew;
return true;
@@ -1593,14 +1596,16 @@ bool zapi_iptable_notify_decode(struct stream *s,
enum zapi_iptable_notify_owner *note)
{
uint32_t uni;
+ uint16_t notew;
- STREAM_GET(note, s, sizeof(*note));
+ STREAM_GETW(s, notew);
STREAM_GETL(s, uni);
if (zclient_debug)
zlog_debug("%s: %u", __func__, uni);
*unique = uni;
+ *note = (enum zapi_iptable_notify_owner)notew;
return true;
@@ -2335,7 +2340,7 @@ struct connected *zebra_interface_address_read(int type, struct stream *s,
* "peer" */
flog_err(
EC_LIB_ZAPI_ENCODE,
- "warning: interface %s address %pFX with peer flag set, but no peer address!",
+ "interface %s address %pFX with peer flag set, but no peer address!",
ifp->name, ifc->address);
UNSET_FLAG(ifc->flags, ZEBRA_IFA_PEER);
}