summaryrefslogtreecommitdiff
path: root/pimd/pim_util.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-06-08 17:49:09 -0700
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-06-08 17:49:09 -0700
commitb7b71de5fe090dbc85616a424d5613e75ba8c8b7 (patch)
treed030e983dea860e8ea80bb72f10908af11ca0d9d /pimd/pim_util.c
parent5d1a88075a408acec53cb9b027e9955150581a0e (diff)
parent4f87aceb78dcec9a88860d92c3657fcbeb46e845 (diff)
Merge branch 'cmaster-next' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster-next
Diffstat (limited to 'pimd/pim_util.c')
-rw-r--r--pimd/pim_util.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/pimd/pim_util.c b/pimd/pim_util.c
index fdfed2bf23..57a8488eca 100644
--- a/pimd/pim_util.c
+++ b/pimd/pim_util.c
@@ -100,23 +100,8 @@ uint16_t igmp_msg_decode8to16(uint8_t code)
void pim_pkt_dump(const char *label, const uint8_t *buf, int size)
{
- char dump_buf[1000];
- int i = 0;
- int j = 0;
-
- for (; i < size; ++i, j += 2) {
- int left = sizeof(dump_buf) - j;
- if (left < 4) {
- if (left > 1) {
- strcat(dump_buf + j, "!"); /* mark as truncated */
- }
- break;
- }
- snprintf(dump_buf + j, left, "%02x", buf[i]);
- }
-
- zlog_debug("%s: pkt dump size=%d: %s",
+ zlog_debug("%s: pkt dump size=%d",
label,
- size,
- dump_buf);
+ size);
+ zlog_hexdump(buf, size);
}