Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-e2ap.h
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-e2ap.h */
4 /* asn2wrs.py -p e2ap -c ./e2ap.cnf -s ./packet-e2ap-template -D . -O ../.. E2AP-CommonDataTypes.asn E2AP-Constants.asn E2AP-Containers.asn E2AP-IEs.asn E2AP-PDU-Contents.asn E2AP-PDU-Descriptions.asn e2sm-kpm-v1.asn */
5 
6 /* Input file: packet-e2ap-template.h */
7 
8 #line 1 "./asn1/e2ap/packet-e2ap-template.h"
9 /* packet-e2ap.h
10  * Routines for NG-RAN NG Application Protocol (NGAP) packet dissection
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 
19 #ifndef PACKET_E2AP_H
20 #define PACKET_E2AP_H
21 
22 
23 /*--- Included file: packet-e2ap-exp.h ---*/
24 #line 1 "./asn1/e2ap/packet-e2ap-exp.h"
25 
26 /*--- End of included file: packet-e2ap-exp.h ---*/
27 #line 15 "./asn1/e2ap/packet-e2ap-template.h"
28 
29 typedef int (*pdu_dissector_t)(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data);
30 
31 /* Function pointers for a RANFunction */
32 typedef struct {
33  pdu_dissector_t ran_function_definition_dissector;
34 
35  pdu_dissector_t ric_control_header_dissector;
36  pdu_dissector_t ric_control_message_dissector;
37  pdu_dissector_t ric_control_outcome_dissector;
38  /* new for v3 */
39  pdu_dissector_t ric_query_outcome_dissector;
40  pdu_dissector_t ric_query_definition_dissector;
41  pdu_dissector_t ric_query_header_dissector;
42 
43  pdu_dissector_t ran_action_definition_dissector;
44  pdu_dissector_t ran_indication_message_dissector;
45  pdu_dissector_t ran_indication_header_dissector;
46  pdu_dissector_t ran_callprocessid_dissector;
47  pdu_dissector_t ran_event_trigger_dissector;
49 
50 typedef enum {
51  MIN_RANFUNCTIONS,
52  KPM_RANFUNCTIONS=0,
53  RC_RANFUNCTIONS,
54  NI_RANFUNCTIONS,
55  CCC_RANFUNCTIONS,
56  MAX_RANFUNCTIONS
57 } ran_function_t;
58 
59 #define MAX_OID_LEN 1001
60 
61 typedef struct {
62  const char* name;
63  char oid[MAX_OID_LEN]; /* i.e., this dissector */
64  uint8_t major_version; /* these are currently not used.. */
65  uint8_t minor_version;
66  ran_function_pointers_t functions;
68 
69 void register_e2ap_ran_function_dissector(ran_function_t ran_function, ran_function_dissector_t *dissector);
70 
71 void e2ap_store_ran_function_mapping(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, const char *name);
72 void e2ap_update_ran_function_mapping(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, const char *oid);
73 
74 
75 #endif /* PACKET_E2AP_H */
76 
77 /*
78  * Editor modelines
79  *
80  * Local Variables:
81  * c-basic-offset: 2
82  * tab-width: 8
83  * indent-tabs-mode: nil
84  * End:
85  *
86  * ex: set shiftwidth=2 tabstop=8 expandtab:
87  * :indentSize=2:tabSize=8:noTabs=true:
88  */
Definition: packet_info.h:44
Definition: proto.h:904
Definition: packet-e2ap.h:61
Definition: packet-e2ap.h:32
Definition: tvbuff-int.h:35