diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-14 15:43:03 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-14 22:43:25 +0000 |
commit | 16b26b8e5fa066bfde0939ca2a66af00af44285e (patch) | |
tree | 44a81524cfc7da675d01172af06b979870bbcc0d /epan/osi-utils.c | |
parent | d3ad27390c47089d1bab973b9760eb80ae9de92f (diff) |
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/osi-utils.c')
-rw-r--r-- | epan/osi-utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <string.h> #include <glib.h> +#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) { |