ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] New dissector: SCCP

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 8 Oct 2001 02:20:11 -0700
On Mon, Oct 08, 2001 at 02:54:40AM +0200, Joerg Mayer wrote:
> this is a skeleton implementation of SCCP (Skinny Client Control Protocol).

"message_id_t" is essentially the same as "value_string"; if the
"message_id[] array were made a "value_string" array, the Info columen
could be set by doing

	if (check_col(pinfo->fd, COL_INFO)) {
	    col_add_str(pinfo->fd, COL_INFO,
		val_to_str(data_messageid, message_id, "Unknown (0x%08X)");
	}

(yes, "col_add_str", not "col_add_fstr" - "col_add_fstr" should be used
only if the argument after the COL_xxx argument is a "printf"-style
format string).

The last element of "message_id[]" would be

  { 0, NULL }

in that case.