MSWSP: add two more Property Sets
[wireshark-wip.git] / epan / dissectors / packet-cipsafety.h
blob7c8e9ace9367c57634c340ccf0eb0cfba6676a04
1 /* packet-cipsafety.h
2 * Routines for CIP (Common Industrial Protocol) Safety dissection
3 * CIP Safety Home: www.odva.org
5 * Copyright 2011
6 * Michael Mann <mmann@pyramidsolutions.com>
8 * $Id$
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #ifndef PACKET_CIPSAFETY_H
29 #define PACKET_CIPSAFETY_H
31 #include "packet-enip.h"
33 /* Classes that have class-specfic dissectors */
34 #define CI_CLS_SAFETY_SUPERVISOR 0x39 /* Safety Supervisor */
35 #define CI_CLS_SAFETY_VALIDATOR 0x3A /* Safety Validator */
37 /* Class specific services */
38 /* Safety Supervisor */
39 #define SC_SSUPER_RECOVER 0x4C
40 #define SC_SSUPER_PERFORM_DIAGNOSTICS 0x4E
41 #define SC_SSUPER_CONFIGURE_REQUEST 0x4F
42 #define SC_SSUPER_VALIDATE_CONFIGURATION 0x50
43 #define SC_SSUPER_SET_PASSWORD 0x51
44 #define SC_SSUPER_CONFIGURATION_LOCK 0x52
45 #define SC_SSUPER_MODE_CHANGE 0x53
46 #define SC_SSUPER_SAFETY_RESET 0x54
47 #define SC_SSUPER_RESET_PASSWORD 0x55
48 #define SC_SSUPER_PROPOSE_TUNID 0x56
49 #define SC_SSUPER_APPLY_TUNID 0x57
51 typedef struct cip_safety_info {
52 enum enip_connid_type conn_type;
53 enum cip_safety_format_type format;
54 gboolean server_dir;
55 } cip_safety_info_t;
59 ** Exported functions
61 extern void dissect_unid(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *pi, const char* ssn_name, int hf_ssn_timestamp,
62 int hf_ssn_date, int hf_ssn_time, int hf_macid, gint ett, gint ett_ssn);
63 extern void dissect_cipsafety_ssn(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int hf_real_datetime, int hf_date, int hf_time);
66 ** Exported variables
68 extern const value_string cipsafety_ssn_date_vals[8];
69 extern attribute_info_t cip_safety_attribute_vals[52];
71 #endif /* PACKET_CIPSAFETY_H */