Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-atn-ulcs-template.h
1 /* packet-atn-ulcs.h
2  * Definitions for atn packet disassembly structures and routines
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 #ifndef PACKET_ATN_ULCS_H
11 #define PACKET_ATN_ULCS_H
12 
13 #include <config.h>
14 
15 #include "packet.h"
16 
17 #include <epan/wmem/wmem.h>
18 
19 enum msg_type {
20  um,
21  dm,
22  no_msg
23 };
24 
25 enum ae_qualifier {
26  ads = 0,
27  cma =1, /* contact management (CM) */
28  cpdlc = 2, /* "plain old" CPDLC */
29  ati = 3 ,
30  arf =10 ,
31  met =11,
32  gac =12,
33  pmcpdlc =22, /* "protected mode" CPDLC */
34  unknown = -1
35 };
36 
37 typedef struct atn_conversation_t {
38  gint ae_qualifier; /* A/G application type */
40 
41 atn_conversation_t * create_atn_conversation(
42  address*,
43  guint16,
44  address*,
46 
47 atn_conversation_t * find_atn_conversation(
48  address*,
49  guint16,
50  address*);
51 
52 /* struct for conversation data reconstruction used in AARQ and AARE */
53 /* if transport data is larger than 32 octets AARQ/AARE is contained */
54 /* within DT frames which have only dest_ref, but no src_ref */
55 /* if AARQ/AARQ is contained within CR/CC only src_ref is present in CR */
56 /* while CC provides src_ref and dstref */
57 typedef struct aarq_data_t {
58  gboolean aarq_pending; /* flag tells whether AARQ/sequence is pending (true) */
59  /* required not to mix up different AARQ/AARE sequences */
60  /* during simoultanous establishment of transport connections */
61  /* i.e. GND facility initialises cpcstart and cmcontact at the same time */
62  atn_conversation_t* cv; /* pointer to AARQ conversation */
63 } aarq_data_t;
64 
65 wmem_tree_t *get_atn_conversation_tree(void);
66 
67 guint32 get_aircraft_24_bit_address_from_nsap(packet_info *);
68 int check_heur_msg_type(packet_info *);
69 
70 #endif
71 
72 /*
73  * Editor modelines - http://www.wireshark.org/tools/modelines.html
74  *
75  * Local variables:
76  * c-basic-offset: 4
77  * tab-width: 8
78  * indent-tabs-mode: nil
79  * End:
80  *
81  * vi: set shiftwidth=4 tabstop=8 expandtab:
82  * :indentSize=4:tabSize=8:noTabs=true:
83  */
Definition: wmem_tree-int.h:47
Definition: packet_info.h:44
Definition: packet-atn-ulcs-template.h:57
Definition: packet-atn-ulcs-template.h:37
Definition: address.h:47