diff options
author | Evan Huus <eapache@gmail.com> | 2013-05-25 01:45:16 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-05-25 01:45:16 +0000 |
commit | cf7ec9f1e9a654345be4f89f312e92ea696bb3dd (patch) | |
tree | a03b8502bed98fc06600e907d4fef208b6af8ad5 /epan/dissectors/packet-zbee-zcl.h | |
parent | 035f3fc27abd0eea0a132e43d25398751950774d (diff) |
From Fabio Tarabelloni via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8387
ZigBee ZCL OnOff cluster dissection.
Also, fix decryption of APS commands.
svn path=/trunk/; revision=49571
Diffstat (limited to 'epan/dissectors/packet-zbee-zcl.h')
-rw-r--r-- | epan/dissectors/packet-zbee-zcl.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/epan/dissectors/packet-zbee-zcl.h b/epan/dissectors/packet-zbee-zcl.h index d8e9a181f5..6665710da5 100644 --- a/epan/dissectors/packet-zbee-zcl.h +++ b/epan/dissectors/packet-zbee-zcl.h @@ -176,4 +176,22 @@ typedef struct{ #define MONTHS_PER_YEAR 12 #define YEAR_OFFSET 1900 +typedef void (*zbee_zcl_fn_attr_id) (proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id); +typedef void (*zbee_zcl_fn_attr_data) (proto_tree *tree, tvbuff_t *tvb, guint *offset, guint16 attr_id, guint data_type); + +typedef struct _zbee_zcl_cluster_desc { + int proto_id; + protocol_t *proto; + const char *name; + int ett; + guint16 cluster_id; + zbee_zcl_fn_attr_id fn_attr_id; + zbee_zcl_fn_attr_data fn_attr_data; +} zbee_zcl_cluster_desc; + + +void dissect_zcl_attr_data (tvbuff_t *tvb, proto_tree *tree, guint *offset, guint data_type); +void zbee_zcl_init_cluster(int proto, gint ett, guint16 cluster_id, zbee_zcl_fn_attr_id fn_attr_id, zbee_zcl_fn_attr_data fn_attr_data); +zbee_zcl_cluster_desc *zbee_zcl_get_cluster_desc(guint16 cluster_id); + #endif /* PACKET_ZBEE_ZCL_H*/ |