summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cipsafety.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-cipsafety.h')
-rw-r--r--epan/dissectors/packet-cipsafety.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/epan/dissectors/packet-cipsafety.h b/epan/dissectors/packet-cipsafety.h
index 82adf6f5..edc7c19d 100644
--- a/epan/dissectors/packet-cipsafety.h
+++ b/epan/dissectors/packet-cipsafety.h
@@ -16,7 +16,7 @@
#include "packet-enip.h"
-/* Classes that have class-specfic dissectors */
+/* Classes that have class-specific dissectors */
#define CI_CLS_SAFETY_SUPERVISOR 0x39 /* Safety Supervisor */
#define CI_CLS_SAFETY_VALIDATOR 0x3A /* Safety Validator */
@@ -39,7 +39,7 @@
typedef struct cip_safety_info {
enum enip_connid_type conn_type;
cip_conn_info_t* eip_conn_info;
- gboolean compute_crc;
+ bool compute_crc;
} cip_safety_info_t;
@@ -47,15 +47,16 @@ typedef struct cip_safety_info {
** Exported functions
*/
extern void dissect_unid(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *pi, const char* snn_name, int hf_snn_timestamp,
- int hf_snn_date, int hf_snn_time, int hf_macid, gint ett, gint ett_snn);
+ int hf_snn_date, int hf_snn_time, int hf_macid, int ett, int ett_snn);
extern 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);
-extern void cip_safety_128us_fmt(gchar *s, guint32 value);
+extern void cip_safety_128us_fmt(char *s, uint32_t value);
+extern void add_safety_data_type_to_info_column(packet_info *pinfo, enum enip_connid_type conn_type, const cip_safety_epath_info_t* safety);
/*
** Exported variables
*/
extern const value_string cipsafety_snn_date_vals[8];
-extern attribute_info_t cip_safety_attribute_vals[51];
+extern const attribute_info_t cip_safety_attribute_vals[51];
extern const range_string safety_max_consumer_numbers[];
#endif /* PACKET_CIPSAFETY_H */