`debug zebra packet detail` dumps the full message whereas
it had been dropping exactly 10 bytes, the size of the zebra header
Signed-off-by: Wesley Coakley <wcoakley@cumulusnetworks.com>
return nbytes;
}
+void stream_hexdump(struct stream *s)
+{
+ zlog_hexdump(s->data, s->endp);
+}
+
/* Stream first in first out queue. */
struct stream_fifo *stream_fifo_new(void)
extern int stream_flush(struct stream *, int);
extern int stream_empty(struct stream *); /* is the stream empty? */
+/* debugging */
+extern void stream_hexdump(struct stream *);
+
/* deprecated */
extern uint8_t *stream_pnt(struct stream *);
zlog_debug("Command: %s", zserv_command_string(hdr->command));
zlog_debug(" VRF: %u", hdr->vrf_id);
}
- zlog_hexdump(msg->data, STREAM_READABLE(msg));
+ stream_hexdump(msg);
}
/*