Note that for THE3GPP_IPV6_DNS_SERVERS we probably *do* need to handle
[obnox/wireshark/wip.git] / packet-mbtcp.c
index 01759753272a5c134ff7aed9232e330143568688..996b96a62eab694f7c471190c841a90635e4ab61 100644 (file)
@@ -10,7 +10,7 @@
  *
  * for information on Modbus/TCP.
  *
- * $Id: packet-mbtcp.c,v 1.12 2003/04/16 06:57:36 guy Exp $
+ * $Id: packet-mbtcp.c,v 1.14 2003/05/08 00:42:28 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*     TODO:
- *     Analysis of the payload of the Modbus packet.
- *             --      Based on the function code in the header, and the fact that the packet is
- *                     either a query or a response, the different fields in the payload can be
- *                     interpreted and displayed.
- */
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
 /* Modbus header */
 typedef struct _modbus_hdr {
-       gchar   unit_id;        /* unit identifier (previously slave addr) */
-       gchar   function_code;  /* Modbus function code */
+       guint8  unit_id;        /* unit identifier (previously slave addr) */
+       guint8  function_code;  /* Modbus function code */
 } modbus_hdr;
 
 /* Modbus/TCP header, containing the Modbus header */