Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
irda-appl.h
1/* irda-appl.h
2 * Interface for IrDA application dissectors
3 * By Jan Kiszka <[email protected]>
4 * Copyright 2003 Jan Kiszka
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <[email protected]>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13
14#ifndef __IRDA_APPL_H__
15#define __IRDA_APPL_H__
16
17/*
18 * Prototypes, defines, and typedefs needed for implementing IrDA application
19 * layer dissectors.
20 * There should be no need to modify this part.
21 */
22
23/* LM-IAS Attribute types */
24#define IAS_MISSING 0
25#define IAS_INTEGER 1
26#define IAS_OCT_SEQ 2
27#define IAS_STRING 3
28
29/* Maximum number of handled list entries of an IAP result */
30#define MAX_IAP_ENTRIES 32
31
32
36typedef enum {
37 CONNECT_PDU,
38 DISCONNECT_PDU,
39 DATA_PDU
40} pdu_type_t;
41
42typedef bool (*ias_value_dissector_t)(tvbuff_t* tvb, unsigned offset, packet_info* pinfo, proto_tree* tree,
43 unsigned list_index, uint8_t attr_type, uint8_t circuit_id);
44
45typedef const struct ias_attr_dissector {
46 const char* attr_name;
47 ias_value_dissector_t value_dissector;
49
50typedef const struct ias_class_dissector {
51 const char* class_name;
52 ias_attr_dissector_t* pattr_dissector;
54
55
66extern bool check_iap_octet_result(tvbuff_t* tvb, proto_tree* tree, unsigned offset,
67 const char* attr_name, uint8_t attr_type);
68
84extern uint8_t check_iap_lsap_result(tvbuff_t* tvb, proto_tree* tree, unsigned offset,
85 const char* attr_name, uint8_t attr_type);
86
99extern void add_lmp_conversation(packet_info* pinfo, uint8_t dlsap, bool ttp, dissector_handle_t dissector, uint8_t circuit_id);
100
109extern unsigned dissect_param_tuple(tvbuff_t* tvb, proto_tree* tree, unsigned offset);
110
111/*
112 * Protocol exports.
113 * Modify the lines below to add new protocols.
114 */
115
116/* IrCOMM/IrLPT protocol */
117
123extern void proto_register_ircomm(void);
124extern ias_attr_dissector_t ircomm_attr_dissector[];
125extern ias_attr_dissector_t irlpt_attr_dissector[];
126
127/* Serial Infrared (SIR) */
128
134extern void proto_register_irsir(void);
135
136
137/*
138 * Protocol hooks
139 */
140
141/* IAS class dissectors */
142#define CLASS_DISSECTORS \
143 { "Device", device_attr_dissector }, \
144 { "IrDA:IrCOMM", ircomm_attr_dissector }, \
145 { "IrLPT", irlpt_attr_dissector }, \
146 { NULL, NULL }
147
148#endif /* __IRDA_APPL_H__ */
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
Definition proto.h:909
Definition packet.c:852
Definition irda-appl.h:45
Definition irda-appl.h:50
Core tvbuff (testy virtual buffer) structure representing a region of packet data,...
Definition tvbuff-int.h:95