diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-02-27 09:30:26 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-02-27 09:30:26 +0000 |
commit | 6b2b82d213c65d72749e0a6360f8ea7cd6ae5069 (patch) | |
tree | 106d486f2835aaeac150517a46e3fa4a31b81754 /epan/dissectors/packet-cipsafety.h | |
parent | 06cee2dfe39d95173d74dca842fc80427fb9397e (diff) |
From Michael Mann:
a dissector for the ODVA protocol: CIP Safety. More information
about the protocol can be found here:
http://www.odva.org/Home/ODVATECHNOLOGIES/CIP/CIPTechnologyOverview/CIPSafety/CIPSafetyOverview/tabid/131/lng/en-US/Default.aspx
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6862
svn path=/trunk/; revision=41201
Diffstat (limited to 'epan/dissectors/packet-cipsafety.h')
-rw-r--r-- | epan/dissectors/packet-cipsafety.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/epan/dissectors/packet-cipsafety.h b/epan/dissectors/packet-cipsafety.h new file mode 100644 index 0000000000..b6be80c3d6 --- /dev/null +++ b/epan/dissectors/packet-cipsafety.h @@ -0,0 +1,65 @@ +/* packet-cipsafety.h + * Routines for CIP (Common Industrial Protocol) Safety dissection + * CIP Safety Home: www.odva.org + * + * Copyright 2011 + * Michael Mann <mmann@pyramidsolutions.com> + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +/* Classes that have class-specfic dissectors */ +#define CI_CLS_SAFETY_SUPERVISOR 0x39 /* Safety Supervisor */ +#define CI_CLS_SAFETY_VALIDATOR 0x3A /* Safety Validator */ + +/* Class specific services */ +/* Safety Supervisor */ +#define SC_SSUPER_RECOVER 0x4C +#define SC_SSUPER_PERFORM_DIAGNOSTICS 0x4E +#define SC_SSUPER_CONFIGURE_REQUEST 0x4F +#define SC_SSUPER_VALIDATE_CONFIGURATION 0x50 +#define SC_SSUPER_SET_PASSWORD 0x51 +#define SC_SSUPER_CONFIGURATION_LOCK 0x52 +#define SC_SSUPER_MODE_CHANGE 0x53 +#define SC_SSUPER_SAFETY_RESET 0x54 +#define SC_SSUPER_RESET_PASSWORD 0x55 +#define SC_SSUPER_PROPOSE_TUNID 0x56 +#define SC_SSUPER_APPLY_TUNID 0x57 + +typedef struct cip_safety_info { + enum enip_connid_type conn_type; + enum cip_safety_format_type format; + gboolean server_dir; +} cip_safety_info_t; + + +/* +** Exported functions +*/ +extern void dissect_unid(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *pi, const char* ssn_name, int hf_ssn_timestamp, + int hf_ssn_date, int hf_ssn_time, int hf_macid, gint ett, gint ett_ssn); +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); + +/* +** Exported variables +*/ +extern const value_string cipsafety_ssn_date_vals[8]; +extern attribute_info_t cip_safety_attribute_vals[52]; |