From 16b26b8e5fa066bfde0939ca2a66af00af44285e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 14 Apr 2014 15:43:03 -0700 Subject: Put the system ID in the top-level items for neighbors. Add a tvb_print_system_id() routine, and use that in various ISIS dissectors, while we're at it. Change-Id: I31b6b9ea8faf2b4849f974ec7ed27fbdd14b91ef Reviewed-on: https://code.wireshark.org/review/1145 Reviewed-by: Guy Harris --- epan/osi-utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'epan/osi-utils.c') diff --git a/epan/osi-utils.c b/epan/osi-utils.c index 4734b14633..5d2671fe37 100644 --- a/epan/osi-utils.c +++ b/epan/osi-utils.c @@ -30,6 +30,7 @@ #include #include +#include "tvbuff.h" #include "osi-utils.h" #include "emem.h" @@ -87,6 +88,12 @@ print_system_id( const guint8 *ad, int length ) return( cur ); } +gchar * +tvb_print_system_id( tvbuff_t *tvb, const gint offset, int length ) +{ + return( print_system_id(tvb_get_ptr(tvb, offset, length), length) ); +} + void print_system_id_buf( const guint8 *ad, int length, gchar *buf, int buf_len) { -- cgit v1.2.3