offset = fUnsignedTag (tvb, tree, offset, "pseudo Random Number: ");
break;
case 1: /* expected Invoke ID Unsigned8 OPTIONAL */
- proto_tree_add_item(tree, hf_bacapp_invoke_id, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(tree, hf_bacapp_invoke_id, tvb, offset++, 1, ENC_BIG_ENDIAN);
break;
case 2: /* Chararacter String OPTIONAL */
offset = fCharacterString (tvb, tree, offset, "operator Name: ");
if (bacapp_flags & 0x08)
*svc = (gint) tvb_get_guint8(tvb, offset+extra+2);
- proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- tc = proto_tree_add_item(bacapp_tree, hf_bacapp_pduflags, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_BIG_ENDIAN);
+ tc = proto_tree_add_item(bacapp_tree, hf_bacapp_pduflags, tvb, offset, 1, ENC_BIG_ENDIAN);
bacapp_tree_control = proto_item_add_subtree(tc, ett_bacapp_control);
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_SEG, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_MOR, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_SEG, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_MOR, tvb, offset, 1, ENC_BIG_ENDIAN);
if (ack == 0) { /* The following are for ConfirmedRequest, not Complex ack */
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_SA, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_SA, tvb, offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree, hf_bacapp_response_segments, tvb,
- offset, 1, ENC_LITTLE_ENDIAN);
+ offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree, hf_bacapp_max_adpu_size, tvb,
- offset, 1, ENC_LITTLE_ENDIAN);
+ offset, 1, ENC_BIG_ENDIAN);
}
offset++;
- proto_tree_add_item(bacapp_tree, hf_bacapp_invoke_id, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree, hf_bacapp_invoke_id, tvb, offset++, 1, ENC_BIG_ENDIAN);
if (bacapp_flags & 0x08) {
bacapp_seq = tvb_get_guint8(tvb, offset);
proto_tree_add_item(bacapp_tree, hf_bacapp_sequence_number, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree, hf_bacapp_window_size, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
}
*tt = proto_tree_add_item(bacapp_tree, hf_bacapp_service, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
return offset;
}
gint tmp;
- proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_BIG_ENDIAN);
tmp = tvb_get_guint8(tvb, offset);
proto_tree_add_item(bacapp_tree, hf_bacapp_uservice, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
/* Service Request follows... Variable Encoding 20.2ff */
return fUnconfirmedServiceRequest (tvb, pinfo, bacapp_tree, offset, tmp);
}
{ /* BACnet-Simple-Ack-PDU */
/* ASHRAE 135-2001 20.1.4 */
- proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree, hf_bacapp_invoke_id, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree, hf_bacapp_service, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
return offset;
}
proto_item *tc;
proto_tree *bacapp_tree_control;
- tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_BIG_ENDIAN);
bacapp_tree_control = proto_item_add_subtree(tc, ett_bacapp);
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_NAK, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_SRV, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_NAK, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_SRV, tvb, offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_invoke_id, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_sequence_number, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_window_size, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
return offset;
}
proto_tree *bacapp_tree_control;
guint8 tmp;
- tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_BIG_ENDIAN);
bacapp_tree_control = proto_item_add_subtree(tc, ett_bacapp);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_invoke_id, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
tmp = tvb_get_guint8(tvb, offset);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_service, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
/* Error Handling follows... */
return fBACnetError (tvb, pinfo, bacapp_tree, offset, tmp);
}
proto_item *tc;
proto_tree *bacapp_tree_control;
- tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset++, 1, ENC_BIG_ENDIAN);
bacapp_tree_control = proto_item_add_subtree(tc, ett_bacapp);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_invoke_id, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_BACnetRejectReason, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
return offset;
}
proto_item *tc;
proto_tree *bacapp_tree_control;
- tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ tc = proto_tree_add_item(bacapp_tree, hf_bacapp_type, tvb, offset, 1, ENC_BIG_ENDIAN);
bacapp_tree_control = proto_item_add_subtree(tc, ett_bacapp);
- proto_tree_add_item(bacapp_tree_control, hf_bacapp_SRV, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item(bacapp_tree_control, hf_bacapp_SRV, tvb, offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_bacapp_invoke_id, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(bacapp_tree_control, hf_BACnetAbortReason, tvb,
- offset++, 1, ENC_LITTLE_ENDIAN);
+ offset++, 1, ENC_BIG_ENDIAN);
return offset;
}