| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-bacapp.h
1/* packet-bacapp.h
2 * by fkraemer, SAUTER
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef __PACKET_BACAPP_H__
12#define __PACKET_BACAPP_H__
13
14#define BACINFO_SERVICE 0
15#define BACINFO_INVOKEID 1
16#define BACINFO_INSTANCEID 2
17#define BACINFO_OBJECTID 4
18
19
20/* Used for BACnet statistics */
21 typedef struct _bacapp_info_value_t {
22 const char *service_type;
23 const char *invoke_id;
24 const char *instance_ident;
25 const char *object_ident;
26} bacapp_info_value_t;
27
28/* Possible datatypes of the present_value property.
29 Follows the order of Application Tag Number. */
30 typedef enum BacappPresentValueType {
31 BACAPP_PRESENT_VALUE_NULL,
32 BACAPP_PRESENT_VALUE_BOOL,
33 BACAPP_PRESENT_VALUE_UNSIGNED,
34 BACAPP_PRESENT_VALUE_SIGNED,
35 BACAPP_PRESENT_VALUE_REAL,
36 BACAPP_PRESENT_VALUE_DOUBLE,
37 BACAPP_PRESENT_VALUE_OCTET_STRING,
38 BACAPP_PRESENT_VALUE_CHARACTER_STRING,
39 BACAPP_PRESENT_VALUE_BIT_STRING,
40 BACAPP_PRESENT_VALUE_ENUM,
41 BACAPP_PRESENT_VALUE_DATE,
42 BACAPP_PRESENT_VALUE_TIME,
43 BACAPP_PRESENT_VALUE_OBJECT_IDENTIFIER
44} BacappPresentValueType;
45
46/* used to dissect the BSCVLC data / destination option token data */
47 extern unsigned
48bacnet_dissect_token(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
49 unsigned offset, const char *lable);
50
51/* used to dissect the BSCVLC data / destination option hint data */
52 extern unsigned
53bacnet_dissect_scope(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
54 unsigned offset, const char *lable);
55
56#endif /* __PACKET_BACNET_H__ */
57
58/*
59 * Editor modelines - https://www.wireshark.org/tools/modelines.html
60 *
61 * Local variables:
62 * c-basic-offset: 4
63 * tab-width: 8
64 * indent-tabs-mode: nil
65 * End:
66 *
67 * vi: set shiftwidth=4 tabstop=8 expandtab:
68 * :indentSize=4:tabSize=8:noTabs=true:
69 */
_bacapp_info_value_t
Definition packet-bacapp.h:21
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:907
tvbuff
Definition tvbuff-int.h:35