1 /* Do not modify this file. Changes will be overwritten.                      */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler       */
3 /* packet-atn-ulcs.h                                                          */
4 /* asn2wrs.py -u -L -p atn-ulcs -c ./atn-ulcs.cnf -s ./packet-atn-ulcs-template -D . -O ../.. atn-ulcs.asn */
5 
6 /* Input file: packet-atn-ulcs-template.h */
7 
8 #line 1 "./asn1/atn-ulcs/packet-atn-ulcs-template.h"
9 /* packet-atn-ulcs.h
10  * Definitions for atn packet disassembly structures and routines
11  *
12  * Wireshark - Network traffic analyzer
13  * By Gerald Combs <gerald@wireshark.org>
14  * Copyright 1998 Gerald Combs
15  *
16  * SPDX-License-Identifier: GPL-2.0-or-later
17  */
18 #ifndef PACKET_ATN_ULCS_H
19 #define PACKET_ATN_ULCS_H
20 
21 #include "packet.h"
22 
23 #include <epan/wmem_scopes.h>
24 
25 enum msg_type {
26     um,
27     dm,
28     no_msg
29 };
30 
31 enum ae_qualifier {
32     ads = 0,
33     cma =1, /* contact management (CM) */
34     cpdlc = 2, /* "plain old" CPDLC */
35     ati = 3 ,
36     arf =10 ,
37     met =11,
38     gac =12,
39     pmcpdlc =22,  /* "protected mode" CPDLC */
40     unknown = -1
41 };
42 
43 typedef struct atn_conversation_t {
44     gint ae_qualifier; /* A/G application type  */
45 } atn_conversation_t;
46 
47 atn_conversation_t * create_atn_conversation(
48     address*,
49     guint16,
50     address*,
51     atn_conversation_t*);
52 
53 atn_conversation_t * find_atn_conversation(
54     address*,
55     guint16,
56     address*);
57 
58 /* struct for conversation data reconstruction used in AARQ and AARE */
59 /* if transport data is larger than 32 octets AARQ/AARE is contained */
60 /* within DT frames which have only dest_ref, but no src_ref */
61 /* if AARQ/AARQ is contained within CR/CC only src_ref is present in CR */
62 /* while CC provides src_ref and dstref */
63 typedef struct aarq_data_t {
64     gboolean aarq_pending; /* flag tells whether AARQ/sequence is pending (true)  */
65                            /* required not to mix up different AARQ/AARE sequences */
66                            /* during simoultanous establishment of transport connections */
67                            /* i.e. GND facility initialises cpcstart and cmcontact at the same time */
68     atn_conversation_t* cv; /* pointer to AARQ conversation */
69 } aarq_data_t;
70 
71 wmem_tree_t *get_atn_conversation_tree(void);
72 
73 guint32 get_aircraft_24_bit_address_from_nsap(packet_info *);
74 int check_heur_msg_type(packet_info *);
75 
76 #endif
77 
78 /*
79  * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
80  *
81  * Local variables:
82  * c-basic-offset: 4
83  * tab-width: 8
84  * indent-tabs-mode: nil
85  * End:
86  *
87  * vi: set shiftwidth=4 tabstop=8 expandtab:
88  * :indentSize=4:tabSize=8:noTabs=true:
89  */
90