/* * XXX - shouldn't there be a centralized routine for dissecting NSAPs? * See also "dissect_atm_nsap()" in epan/dissectors/packet-arp.c and * "dissect_nsap()" in epan/dissectors/packet-isup.c. */ gchar * print_nsap_net( tvbuff_t *tvb, const gint offset, int length ) { gchar *cur; cur = (gchar *)wmem_alloc(wmem_packet_scope(), MAX_NSAP_LEN * 3 + 50); print_nsap_net_buf( tvb_get_ptr(tvb, offset, length), length, cur, MAX_NSAP_LEN * 3 + 50); return( cur ); }
/* * XXX - shouldn't there be a centralized routine for dissecting NSAPs? * See also "dissect_atm_nsap()" in epan/dissectors/packet-arp.c and * "dissect_nsap()" in epan/dissectors/packet-isup.c. */ gchar * print_nsap_net( const guint8 *ad, int length ) { gchar *cur; cur = ep_alloc(MAX_NSAP_LEN * 3 + 50); print_nsap_net_buf( ad, length, cur, MAX_NSAP_LEN * 3 + 50); return( cur ); }
static int osi_address_to_str(const address* addr, gchar *buf, int buf_len) { print_nsap_net_buf((const guint8 *)addr->data, addr->len, buf, buf_len); return (int)strlen(buf)+1; }