From c54111c3887d5aef2f0789defbc5614152a8cd8e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 24 Jun 2006 02:41:25 +0000 Subject: Put the sequence number in for a response, if present. svn path=/trunk/; revision=18568 --- plugins/sbus/packet-sbus.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/sbus/packet-sbus.c b/plugins/sbus/packet-sbus.c index ecd889907e..464fef89f6 100644 --- a/plugins/sbus/packet-sbus.c +++ b/plugins/sbus/packet-sbus.c @@ -630,13 +630,18 @@ dissect_sbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Special treatment of web server request * as is is very helpful to see more information in the packetlist */ if (request_val && ((request_val->cmd_code) == SBUS_WEB_SERVER_SERIAL_COMM)) { + sbus_web_size = tvb_get_guint8(tvb,9); sbus_web_aid = tvb_get_guint8(tvb,10); col_add_fstr(pinfo->cinfo, COL_INFO, - "Response: %s (Seq No: %d)", + "Response: %s", val_to_str(sbus_web_aid, - webserver_aid_vals, "Unknown Request!"), - sbus_web_aid); - + webserver_aid_vals, "Unknown Request!")); + if (sbus_web_size > 1) { + sbus_web_seq = tvb_get_guint8(tvb,11); + col_append_fstr(pinfo->cinfo, COL_INFO, + " (Seq No: %d)", + sbus_web_seq); + } } else { col_set_str(pinfo->cinfo, COL_INFO, "Response"); } -- cgit v1.2.3