summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-bacapp.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-08-05 19:37:57 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-08-05 19:37:57 +0000
commite6856b69f3ebf85a1a37cb7c7a508f2be41fb1fe (patch)
treeb91772e36611b24eb4c430c337c91818dc652edb /epan/dissectors/packet-bacapp.h
parent6f022ad7963254bb4f04535872591d7b801b6ac0 (diff)
downloadwireshark-e6856b69f3ebf85a1a37cb7c7a508f2be41fb1fe.tar.gz
From David Richards:
here are the highlights of what's fixed: 1) Decoding of vendor-defined types 2) Decoding of some event notification parameters (not all) 3) Decoding of ABSTRACT-SYNTAX&Type 4) Decoding of BACnetTimeStamp 5) Some problems with context-tagged values (like booleans) 6) Continuation segments - don't try to decode them since you can't start mid-PDU 7) Removed some excessive levels of subtrees svn path=/trunk/; revision=15226
Diffstat (limited to 'epan/dissectors/packet-bacapp.h')
-rw-r--r--epan/dissectors/packet-bacapp.h49
1 files changed, 46 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bacapp.h b/epan/dissectors/packet-bacapp.h
index 60545e0536..e4a717a2ac 100644
--- a/epan/dissectors/packet-bacapp.h
+++ b/epan/dissectors/packet-bacapp.h
@@ -124,6 +124,19 @@ static guint
fConfirmedRequestPDU(tvbuff_t *tvb, proto_tree *tree, guint offset);
/**
+ * @param tvb
+ * @param tree
+ * @param offset
+ * @param ack - indocates whether working on request or ack
+ * @param svc - output variable to return service choice
+ * @param tt - output varable to return service choice item
+ * @return modified offset
+ */
+static guint
+fStartConfirmed(tvbuff_t *tvb, proto_tree *tree, guint offset, guint8 ack,
+ gint *svc, proto_item **tt);
+
+/**
* Unconfirmed-Request-PDU ::= SEQUENCE {
* pdu-type [0] Unsigned (0..15), -- 1 for this PDU type
* reserved [1] Unsigned (0..15), -- must be set zero
@@ -1370,6 +1383,15 @@ fCalendaryEntry (tvbuff_t *tvb, proto_tree *tree, guint offset);
static guint
fClientCOV (tvbuff_t *tvb, proto_tree *tree, guint offset);
+/**
+ * BACnetDailySchedule ::= SEQUENCE {
+ * day-schedule [0] SENQUENCE OF BACnetTimeValue
+ * }
+ * @param tvb
+ * @param tree
+ * @param offset
+ * @return modified offset
+ */
static guint
fDailySchedule (tvbuff_t *tvb, proto_tree *tree, guint offset);
@@ -1607,7 +1629,7 @@ fNotificationParameters (tvbuff_t *tvb, proto_tree *tree, guint offset);
* @return modified offset
*/
static guint
-fObjectPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset);
+fBACnetObjectPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset);
/**
* BACnetObjectPropertyValue ::= SEQUENCE {
@@ -1636,6 +1658,9 @@ fObjectPropertyValue (tvbuff_t *tvb, proto_tree *tree, guint offset);
static guint
fPriorityArray (tvbuff_t *tvb, proto_tree *tree, guint offset);
+static guint
+fPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset, guint8 tagoffset, guint8 list);
+
/**
* BACnetPropertyReference ::= SEQUENCE {
* propertyIdentifier [0] BACnetPropertyIdentifier,
@@ -1647,7 +1672,10 @@ fPriorityArray (tvbuff_t *tvb, proto_tree *tree, guint offset);
* @return modified offset
*/
static guint
-fPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset);
+fBACnetPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset, guint8 list);
+
+static guint
+fBACnetObjectPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset);
/**
* BACnetPropertyValue ::= SEQUENCE {
@@ -1663,7 +1691,10 @@ fPropertyReference (tvbuff_t *tvb, proto_tree *tree, guint offset);
* @return modified offset
*/
static guint
-fPropertyValue (tvbuff_t *tvb, proto_tree *tree, guint offset);
+fBACnetPropertyValue (tvbuff_t *tvb, proto_tree *tree, guint offset);
+
+static guint
+fPropertyValue (tvbuff_t *tvb, proto_tree *tree, guint offset, guint8 tagoffset);
/**
* BACnet Application PDUs chapter 21
@@ -1978,6 +2009,18 @@ static guint
fError(tvbuff_t *tvb, proto_tree *tree, guint offset);
/**
+ * Generic handler for context tagged values. Mostly for handling
+ * vendor-defined properties and services.
+ * @param tvb
+ * @param tree
+ * @param offset
+ * @return modified offset
+ * @todo beautify this ugly construct
+ */
+static guint
+fContextTaggedValue(tvbuff_t *tvb, proto_tree *tree, guint offset, const gchar *label);
+
+/**
* realizes some ABSTRACT-SYNTAX.&Type
* @param tvb
* @param tree