diff options
| author | Wesley Coakley <wcoakley@cumulusnetworks.com> | 2020-05-28 10:41:10 -0400 |
|---|---|---|
| committer | Wesley Coakley <wcoakley@cumulusnetworks.com> | 2020-05-28 10:48:56 -0400 |
| commit | 9d72660d671739452d9825609fbf73ec7245f2e8 (patch) | |
| tree | 021669525a8c4c6ab37205ad8ccc4d671f2f011f /lib/stream.c | |
| parent | 5308f267382773c2fff832932e3905c460738257 (diff) | |
zebra, lib: bugfix on zebra packet debugging
`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>
Diffstat (limited to 'lib/stream.c')
| -rw-r--r-- | lib/stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stream.c b/lib/stream.c index 683a130e44..b378ab62a5 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -1122,6 +1122,11 @@ int stream_flush(struct stream *s, int fd) 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) |
