14#ifndef PACKET_CIPSAFETY_H
15#define PACKET_CIPSAFETY_H
17#include "packet-enip.h"
20#define CI_CLS_SAFETY_SUPERVISOR 0x39
21#define CI_CLS_SAFETY_VALIDATOR 0x3A
25#define SC_SSUPER_RECOVER 0x4C
26#define SC_SSUPER_PERFORM_DIAGNOSTICS 0x4E
27#define SC_SSUPER_CONFIGURE_REQUEST 0x4F
28#define SC_SSUPER_VALIDATE_CONFIGURATION 0x50
29#define SC_SSUPER_SET_PASSWORD 0x51
30#define SC_SSUPER_CONFIGURATION_LOCK 0x52
31#define SC_SSUPER_MODE_CHANGE 0x53
32#define SC_SSUPER_SAFETY_RESET 0x54
33#define SC_SSUPER_RESET_PASSWORD 0x55
34#define SC_SSUPER_PROPOSE_TUNID 0x56
35#define SC_SSUPER_APPLY_TUNID 0x57
36#define SC_SSUPER_PROPOSE_TUNID_LIST 0x58
37#define SC_SSUPER_APPLY_TUNID_LIST 0x59
40 enum enip_connid_type conn_type;
41 cip_conn_info_t* eip_conn_info;
49extern void dissect_unid(tvbuff_t *tvb,
packet_info *pinfo,
int offset,
proto_item *pi,
const char* snn_name,
int hf_snn_timestamp,
50 int hf_snn_date,
int hf_snn_time,
int hf_macid,
int ett,
int ett_snn);
51extern void dissect_cipsafety_snn(proto_tree *tree, tvbuff_t *tvb,
packet_info *pinfo,
int offset,
int hf_real_datetime,
int hf_date,
int hf_time);
52extern void cip_safety_128us_fmt(
char *s, uint32_t value);
53extern void add_safety_data_type_to_info_column(
packet_info *pinfo,
enum enip_connid_type conn_type,
const cip_safety_epath_info_t* safety);
59extern const attribute_info_t cip_safety_attribute_vals[51];
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
proto_node proto_item
Definition proto.h:927
Definition packet-cipsafety.h:39
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.
struct _range_string range_string
Maps an inclusive numeric range to a string value, used for table-driven range-to-string lookups.