2013-09-05 05:26:04 +00:00
|
|
|
/* Do not modify this file. Changes will be overwritten. */
|
|
|
|
/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
|
|
|
|
/* packet-atn-ulcs.h */
|
2016-03-09 03:17:51 +00:00
|
|
|
/* asn2wrs.py -u -L -p atn-ulcs -c ./atn-ulcs.cnf -s ./packet-atn-ulcs-template -D . -O ../.. atn-ulcs.asn */
|
2013-09-05 05:26:04 +00:00
|
|
|
|
|
|
|
/* Input file: packet-atn-ulcs-template.h */
|
|
|
|
|
2016-03-09 03:17:51 +00:00
|
|
|
#line 1 "./asn1/atn-ulcs/packet-atn-ulcs-template.h"
|
2013-09-05 05:26:04 +00:00
|
|
|
/* packet-atn-ulcs.h
|
|
|
|
* Definitions for atn packet disassembly structures and routines
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2013-09-07 22:12:24 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2013-09-05 05:26:04 +00:00
|
|
|
*/
|
|
|
|
#ifndef PACKET_ATN_ULCS_H
|
|
|
|
#define PACKET_ATN_ULCS_H
|
|
|
|
|
2015-04-26 17:21:09 +00:00
|
|
|
#include <config.h>
|
2013-09-05 05:26:04 +00:00
|
|
|
|
|
|
|
#include "packet.h"
|
|
|
|
|
2013-09-05 12:13:00 +00:00
|
|
|
#include <epan/wmem/wmem.h>
|
|
|
|
|
2013-09-05 05:26:04 +00:00
|
|
|
enum msg_type {
|
2015-08-09 16:20:54 +00:00
|
|
|
um,
|
|
|
|
dm,
|
|
|
|
no_msg
|
2013-09-05 05:26:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum ae_qualifier {
|
2015-08-09 16:20:54 +00:00
|
|
|
ads = 0,
|
|
|
|
cma =1, /* contact management (CM) */
|
|
|
|
cpdlc = 2, /* "plain old" CPDLC */
|
|
|
|
ati = 3 ,
|
|
|
|
arf =10 ,
|
|
|
|
met =11,
|
|
|
|
gac =12,
|
|
|
|
pmcpdlc =22, /* "protected mode" CPDLC */
|
|
|
|
unknown = -1
|
2013-09-05 05:26:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct atn_conversation_t {
|
2015-08-09 16:20:54 +00:00
|
|
|
gint ae_qualifier; /* A/G application type */
|
2013-09-05 05:26:04 +00:00
|
|
|
} atn_conversation_t;
|
|
|
|
|
|
|
|
atn_conversation_t * create_atn_conversation(
|
2015-08-09 16:20:54 +00:00
|
|
|
address*,
|
|
|
|
guint16,
|
|
|
|
address*,
|
|
|
|
atn_conversation_t*);
|
2013-09-05 05:26:04 +00:00
|
|
|
|
|
|
|
atn_conversation_t * find_atn_conversation(
|
2015-08-09 16:20:54 +00:00
|
|
|
address*,
|
|
|
|
guint16,
|
|
|
|
address*);
|
2013-09-05 12:13:00 +00:00
|
|
|
|
2013-09-05 05:26:04 +00:00
|
|
|
/* struct for conversation data reconstruction used in AARQ and AARE */
|
|
|
|
/* if transport data is larger than 32 octets AARQ/AARE is contained */
|
|
|
|
/* within DT frames which have only dest_ref, but no src_ref */
|
|
|
|
/* if AARQ/AARQ is contained within CR/CC only src_ref is present in CR */
|
|
|
|
/* while CC provides src_ref and dstref */
|
|
|
|
typedef struct aarq_data_t {
|
2015-08-09 16:20:54 +00:00
|
|
|
gboolean aarq_pending; /* flag tells whether AARQ/sequence is pending (true) */
|
|
|
|
/* required not to mix up different AARQ/AARE sequences */
|
|
|
|
/* during simoultanous establishment of transport connections */
|
|
|
|
/* i.e. GND facility initialises cpcstart and cmcontact at the same time */
|
|
|
|
atn_conversation_t* cv; /* pointer to AARQ conversation */
|
2013-09-05 05:26:04 +00:00
|
|
|
} aarq_data_t;
|
2013-09-05 12:13:00 +00:00
|
|
|
|
|
|
|
wmem_tree_t *get_atn_conversation_tree(void);
|
2013-09-05 05:26:04 +00:00
|
|
|
|
|
|
|
guint32 get_aircraft_24_bit_address_from_nsap(packet_info *);
|
|
|
|
int check_heur_msg_type(packet_info *);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
2015-08-09 16:20:54 +00:00
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
2013-09-05 05:26:04 +00:00
|
|
|
* End:
|
|
|
|
*
|
2015-08-09 16:20:54 +00:00
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
2013-09-05 05:26:04 +00:00
|
|
|
*/
|