/* ZigBee helper function. extracts an EUI64 address and displays */
guint64 zbee_parse_eui64(proto_tree *tree, int hfindex, tvbuff_t *tvb, guint *offset, guint length, proto_item **ti)
/* ZigBee helper function. extracts an EUI64 address and displays */
guint64 zbee_parse_eui64(proto_tree *tree, int hfindex, tvbuff_t *tvb, guint *offset, guint length, proto_item **ti)
{
    proto_item          *item = NULL;
    guint64             value;
    value = tvb_get_letoh64(tvb, *offset);
    item = proto_tree_add_eui64(tree, hfindex, tvb, *offset, length, value);
    *offset += (int)sizeof(guint64);
    if (ti) *ti = item;
    return value;
}