*
* 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 */