1 /* Do not modify this file. */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -p s4406 -c s4406.cnf -s packet-s4406-template s4406.asn */
6 /* Input file: packet-s4406-template.c */
8 #line 1 "packet-s4406-template.c"
10 * Routines for STANAG 4406 (X.400 Military Message Extensions) packet dissection
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 #include <epan/packet.h>
40 #include <epan/conversation.h>
41 #include <epan/asn1.h>
46 #include "packet-ber.h"
48 #include "packet-x509if.h"
50 #include "packet-s4406.h"
51 #include "packet-x411.h"
52 #include "packet-x420.h"
54 #define PNAME "STANAG 4406 Military Message"
55 #define PSNAME "STANAG 4406"
56 #define PFNAME "s4406"
58 /* Initialize the protocol and registered fields */
62 /*--- Included file: packet-s4406-hf.c ---*/
63 #line 1 "packet-s4406-hf.c"
64 static int hf_s4406_InformationObject_PDU = -1; /* InformationObject */
65 static int hf_s4406_MMMessageData_PDU = -1; /* MMMessageData */
66 static int hf_s4406_MMMessageParameters_PDU = -1; /* MMMessageParameters */
67 static int hf_s4406_ExemptedAddressSeq_PDU = -1; /* ExemptedAddressSeq */
68 static int hf_s4406_ExtendedAuthorisationInfo_PDU = -1; /* ExtendedAuthorisationInfo */
69 static int hf_s4406_DistributionCodes_PDU = -1; /* DistributionCodes */
70 static int hf_s4406_HandlingInstructions_PDU = -1; /* HandlingInstructions */
71 static int hf_s4406_MessageInstructions_PDU = -1; /* MessageInstructions */
72 static int hf_s4406_CodressMessage_PDU = -1; /* CodressMessage */
73 static int hf_s4406_OriginatorReference_PDU = -1; /* OriginatorReference */
74 static int hf_s4406_PrimaryPrecedence_PDU = -1; /* PrimaryPrecedence */
75 static int hf_s4406_CopyPrecedence_PDU = -1; /* CopyPrecedence */
76 static int hf_s4406_MessageType_PDU = -1; /* MessageType */
77 static int hf_s4406_AddressListDesignatorSeq_PDU = -1; /* AddressListDesignatorSeq */
78 static int hf_s4406_OtherRecipientDesignatorSeq_PDU = -1; /* OtherRecipientDesignatorSeq */
79 static int hf_s4406_PilotInformationSeq_PDU = -1; /* PilotInformationSeq */
80 static int hf_s4406_Acp127MessageIdentifier_PDU = -1; /* Acp127MessageIdentifier */
81 static int hf_s4406_OriginatorPlad_PDU = -1; /* OriginatorPlad */
82 static int hf_s4406_Acp127NotificationType_PDU = -1; /* Acp127NotificationType */
83 static int hf_s4406_SecurityInformationLabels_PDU = -1; /* SecurityInformationLabels */
84 static int hf_s4406_PriorityLevelQualifier_PDU = -1; /* PriorityLevelQualifier */
85 static int hf_s4406_mm = -1; /* IPM */
86 static int hf_s4406_mn = -1; /* IPN */
87 static int hf_s4406_ExemptedAddressSeq_item = -1; /* ExemptedAddress */
88 static int hf_s4406_sics = -1; /* SEQUENCE_OF_Sic */
89 static int hf_s4406_sics_item = -1; /* Sic */
90 static int hf_s4406_dist_Extensions = -1; /* SEQUENCE_OF_DistributionExtensionField */
91 static int hf_s4406_dist_Extensions_item = -1; /* DistributionExtensionField */
92 static int hf_s4406_dist_type = -1; /* OBJECT_IDENTIFIER */
93 static int hf_s4406_dist_value = -1; /* T_dist_value */
94 static int hf_s4406_HandlingInstructions_item = -1; /* MilitaryString */
95 static int hf_s4406_MessageInstructions_item = -1; /* MilitaryString */
96 static int hf_s4406_message_type_type = -1; /* TypeMessage */
97 static int hf_s4406_identifier = -1; /* MessageIdentifier */
98 static int hf_s4406_AddressListDesignatorSeq_item = -1; /* AddressListDesignator */
99 static int hf_s4406_address_list_type = -1; /* AddressListType */
100 static int hf_s4406_listName = -1; /* ORDescriptor */
101 static int hf_s4406_notificationRequest = -1; /* AddressListRequest */
102 static int hf_s4406_replyRequest = -1; /* AddressListRequest */
103 static int hf_s4406_OtherRecipientDesignatorSeq_item = -1; /* OtherRecipientDesignator */
104 static int hf_s4406_other_recipient_type = -1; /* OtherRecipientType */
105 static int hf_s4406_designator = -1; /* MilitaryString */
106 static int hf_s4406_PilotInformationSeq_item = -1; /* PilotInformation */
107 static int hf_s4406_pilotPrecedence = -1; /* PilotPrecedence */
108 static int hf_s4406_pilotRecipient = -1; /* SEQUENCE_OF_ORDescriptor */
109 static int hf_s4406_pilotRecipient_item = -1; /* ORDescriptor */
110 static int hf_s4406_pilotSecurity = -1; /* SecurityLabel */
111 static int hf_s4406_pilotHandling = -1; /* SEQUENCE_OF_MilitaryString */
112 static int hf_s4406_pilotHandling_item = -1; /* MilitaryString */
113 static int hf_s4406_content_security_label = -1; /* SecurityLabel */
114 static int hf_s4406_heading_security_label = -1; /* SecurityLabel */
115 static int hf_s4406_body_part_security_labels = -1; /* SEQUENCE_OF_BodyPartSecurityLabel */
116 static int hf_s4406_body_part_security_labels_item = -1; /* BodyPartSecurityLabel */
117 static int hf_s4406_body_part_security_label = -1; /* SecurityLabel */
118 static int hf_s4406_body_part_sequence_number = -1; /* BodyPartSequenceNumber */
120 static int hf_s4406_Acp127NotificationType_negative = -1;
121 static int hf_s4406_Acp127NotificationType_positive = -1;
122 static int hf_s4406_Acp127NotificationType_transfer = -1;
124 /*--- End of included file: packet-s4406-hf.c ---*/
125 #line 54 "packet-s4406-template.c"
127 /* Initialize the subtree pointers */
128 static gint ett_s4406 = -1;
130 /*--- Included file: packet-s4406-ett.c ---*/
131 #line 1 "packet-s4406-ett.c"
132 static gint ett_s4406_InformationObject = -1;
133 static gint ett_s4406_ExemptedAddressSeq = -1;
134 static gint ett_s4406_DistributionCodes = -1;
135 static gint ett_s4406_SEQUENCE_OF_Sic = -1;
136 static gint ett_s4406_SEQUENCE_OF_DistributionExtensionField = -1;
137 static gint ett_s4406_DistributionExtensionField = -1;
138 static gint ett_s4406_HandlingInstructions = -1;
139 static gint ett_s4406_MessageInstructions = -1;
140 static gint ett_s4406_MessageType = -1;
141 static gint ett_s4406_AddressListDesignatorSeq = -1;
142 static gint ett_s4406_AddressListDesignator = -1;
143 static gint ett_s4406_OtherRecipientDesignatorSeq = -1;
144 static gint ett_s4406_OtherRecipientDesignator = -1;
145 static gint ett_s4406_PilotInformationSeq = -1;
146 static gint ett_s4406_PilotInformation = -1;
147 static gint ett_s4406_SEQUENCE_OF_ORDescriptor = -1;
148 static gint ett_s4406_SEQUENCE_OF_MilitaryString = -1;
149 static gint ett_s4406_Acp127NotificationType = -1;
150 static gint ett_s4406_SecurityInformationLabels = -1;
151 static gint ett_s4406_SEQUENCE_OF_BodyPartSecurityLabel = -1;
152 static gint ett_s4406_BodyPartSecurityLabel = -1;
154 /*--- End of included file: packet-s4406-ett.c ---*/
155 #line 58 "packet-s4406-template.c"
158 /*--- Included file: packet-s4406-fn.c ---*/
159 #line 1 "packet-s4406-fn.c"
161 static const value_string s4406_InformationObject_vals[] = {
167 static const ber_choice_t InformationObject_choice[] = {
168 { 0, &hf_s4406_mm , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_x420_IPM },
169 { 1, &hf_s4406_mn , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_x420_IPN },
170 { 0, NULL, 0, 0, 0, NULL }
174 dissect_s4406_InformationObject(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
175 offset = dissect_ber_choice(actx, tree, tvb, offset,
176 InformationObject_choice, hf_index, ett_s4406_InformationObject,
185 dissect_s4406_MMMessageData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
186 offset = dissect_x420_IPM(implicit_tag, tvb, offset, actx, tree, hf_index);
194 dissect_s4406_MMMessageParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
195 offset = dissect_x420_MessageParameters(implicit_tag, tvb, offset, actx, tree, hf_index);
203 dissect_s4406_ExemptedAddress(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
204 offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, actx, tree, hf_index);
210 static const ber_sequence_t ExemptedAddressSeq_sequence_of[1] = {
211 { &hf_s4406_ExemptedAddressSeq_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_s4406_ExemptedAddress },
215 dissect_s4406_ExemptedAddressSeq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
216 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
217 ExemptedAddressSeq_sequence_of, hf_index, ett_s4406_ExemptedAddressSeq);
225 dissect_s4406_ExtendedAuthorisationInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
226 offset = dissect_ber_UTCTime(implicit_tag, actx, tree, tvb, offset, hf_index);
234 dissect_s4406_Sic(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
235 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
236 actx, tree, tvb, offset, hf_index,
243 static const ber_sequence_t SEQUENCE_OF_Sic_sequence_of[1] = {
244 { &hf_s4406_sics_item , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_s4406_Sic },
248 dissect_s4406_SEQUENCE_OF_Sic(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
249 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
250 SEQUENCE_OF_Sic_sequence_of, hf_index, ett_s4406_SEQUENCE_OF_Sic);
258 dissect_s4406_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
259 offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
267 dissect_s4406_T_dist_value(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
269 /* XXX: not implemented */
277 static const ber_sequence_t DistributionExtensionField_sequence[] = {
278 { &hf_s4406_dist_type , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_s4406_OBJECT_IDENTIFIER },
279 { &hf_s4406_dist_value , BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_s4406_T_dist_value },
280 { NULL, 0, 0, 0, NULL }
284 dissect_s4406_DistributionExtensionField(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
285 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
286 DistributionExtensionField_sequence, hf_index, ett_s4406_DistributionExtensionField);
292 static const ber_sequence_t SEQUENCE_OF_DistributionExtensionField_sequence_of[1] = {
293 { &hf_s4406_dist_Extensions_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_s4406_DistributionExtensionField },
297 dissect_s4406_SEQUENCE_OF_DistributionExtensionField(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
298 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
299 SEQUENCE_OF_DistributionExtensionField_sequence_of, hf_index, ett_s4406_SEQUENCE_OF_DistributionExtensionField);
305 static const ber_sequence_t DistributionCodes_set[] = {
306 { &hf_s4406_sics , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_SEQUENCE_OF_Sic },
307 { &hf_s4406_dist_Extensions, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_SEQUENCE_OF_DistributionExtensionField },
308 { NULL, 0, 0, 0, NULL }
312 dissect_s4406_DistributionCodes(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
313 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
314 DistributionCodes_set, hf_index, ett_s4406_DistributionCodes);
322 dissect_s4406_MilitaryString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
323 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
324 actx, tree, tvb, offset, hf_index,
331 static const ber_sequence_t HandlingInstructions_sequence_of[1] = {
332 { &hf_s4406_HandlingInstructions_item, BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_s4406_MilitaryString },
336 dissect_s4406_HandlingInstructions(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
337 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
338 HandlingInstructions_sequence_of, hf_index, ett_s4406_HandlingInstructions);
344 static const ber_sequence_t MessageInstructions_sequence_of[1] = {
345 { &hf_s4406_MessageInstructions_item, BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_s4406_MilitaryString },
349 dissect_s4406_MessageInstructions(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
350 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
351 MessageInstructions_sequence_of, hf_index, ett_s4406_MessageInstructions);
359 dissect_s4406_CodressMessage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
360 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
369 dissect_s4406_OriginatorReference(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
370 offset = dissect_s4406_MilitaryString(implicit_tag, tvb, offset, actx, tree, hf_index);
376 static const value_string s4406_PrimaryPrecedence_vals[] = {
391 dissect_s4406_PrimaryPrecedence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
394 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
397 if((precedence != -1) && check_col(actx->pinfo->cinfo, COL_INFO))
398 col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (primary=%s)", val_to_str(precedence, s4406_PrimaryPrecedence_vals, "precedence(%d)"));
406 static const value_string s4406_CopyPrecedence_vals[] = {
421 dissect_s4406_CopyPrecedence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
424 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
427 if((precedence != -1) && check_col(actx->pinfo->cinfo, COL_INFO))
428 col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (copy=%s)", val_to_str(precedence, s4406_CopyPrecedence_vals, "precedence(%d)"));
435 static const value_string s4406_TypeMessage_vals[] = {
445 dissect_s4406_TypeMessage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
446 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
455 dissect_s4406_MessageIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
456 offset = dissect_s4406_MilitaryString(implicit_tag, tvb, offset, actx, tree, hf_index);
462 static const ber_sequence_t MessageType_set[] = {
463 { &hf_s4406_message_type_type, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_s4406_TypeMessage },
464 { &hf_s4406_identifier , BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_MessageIdentifier },
465 { NULL, 0, 0, 0, NULL }
469 dissect_s4406_MessageType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
470 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
471 MessageType_set, hf_index, ett_s4406_MessageType);
477 static const value_string s4406_AddressListType_vals[] = {
478 { 0, "primaryAddressList" },
479 { 1, "copyAddressList" },
485 dissect_s4406_AddressListType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
486 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
493 static const value_string s4406_AddressListRequest_vals[] = {
502 dissect_s4406_AddressListRequest(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
503 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
510 static const ber_sequence_t AddressListDesignator_set[] = {
511 { &hf_s4406_address_list_type, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_s4406_AddressListType },
512 { &hf_s4406_listName , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_x420_ORDescriptor },
513 { &hf_s4406_notificationRequest, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_AddressListRequest },
514 { &hf_s4406_replyRequest , BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_AddressListRequest },
515 { NULL, 0, 0, 0, NULL }
519 dissect_s4406_AddressListDesignator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
520 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
521 AddressListDesignator_set, hf_index, ett_s4406_AddressListDesignator);
527 static const ber_sequence_t AddressListDesignatorSeq_sequence_of[1] = {
528 { &hf_s4406_AddressListDesignatorSeq_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_s4406_AddressListDesignator },
532 dissect_s4406_AddressListDesignatorSeq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
533 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
534 AddressListDesignatorSeq_sequence_of, hf_index, ett_s4406_AddressListDesignatorSeq);
540 static const value_string s4406_OtherRecipientType_vals[] = {
548 dissect_s4406_OtherRecipientType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
549 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
556 static const ber_sequence_t OtherRecipientDesignator_set[] = {
557 { &hf_s4406_other_recipient_type, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_s4406_OtherRecipientType },
558 { &hf_s4406_designator , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_s4406_MilitaryString },
559 { NULL, 0, 0, 0, NULL }
563 dissect_s4406_OtherRecipientDesignator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
564 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
565 OtherRecipientDesignator_set, hf_index, ett_s4406_OtherRecipientDesignator);
571 static const ber_sequence_t OtherRecipientDesignatorSeq_sequence_of[1] = {
572 { &hf_s4406_OtherRecipientDesignatorSeq_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_s4406_OtherRecipientDesignator },
576 dissect_s4406_OtherRecipientDesignatorSeq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
577 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
578 OtherRecipientDesignatorSeq_sequence_of, hf_index, ett_s4406_OtherRecipientDesignatorSeq);
584 static const value_string s4406_PilotPrecedence_vals[] = {
599 dissect_s4406_PilotPrecedence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
600 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
607 static const ber_sequence_t SEQUENCE_OF_ORDescriptor_sequence_of[1] = {
608 { &hf_s4406_pilotRecipient_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_x420_ORDescriptor },
612 dissect_s4406_SEQUENCE_OF_ORDescriptor(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
613 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
614 SEQUENCE_OF_ORDescriptor_sequence_of, hf_index, ett_s4406_SEQUENCE_OF_ORDescriptor);
620 static const ber_sequence_t SEQUENCE_OF_MilitaryString_sequence_of[1] = {
621 { &hf_s4406_pilotHandling_item, BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_s4406_MilitaryString },
625 dissect_s4406_SEQUENCE_OF_MilitaryString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
626 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
627 SEQUENCE_OF_MilitaryString_sequence_of, hf_index, ett_s4406_SEQUENCE_OF_MilitaryString);
633 static const ber_sequence_t PilotInformation_sequence[] = {
634 { &hf_s4406_pilotPrecedence, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_PilotPrecedence },
635 { &hf_s4406_pilotRecipient, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_SEQUENCE_OF_ORDescriptor },
636 { &hf_s4406_pilotSecurity , BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_x411_SecurityLabel },
637 { &hf_s4406_pilotHandling , BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_SEQUENCE_OF_MilitaryString },
638 { NULL, 0, 0, 0, NULL }
642 dissect_s4406_PilotInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
643 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
644 PilotInformation_sequence, hf_index, ett_s4406_PilotInformation);
650 static const ber_sequence_t PilotInformationSeq_sequence_of[1] = {
651 { &hf_s4406_PilotInformationSeq_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_s4406_PilotInformation },
655 dissect_s4406_PilotInformationSeq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
656 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
657 PilotInformationSeq_sequence_of, hf_index, ett_s4406_PilotInformationSeq);
665 dissect_s4406_Acp127MessageIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
666 offset = dissect_s4406_MilitaryString(implicit_tag, tvb, offset, actx, tree, hf_index);
674 dissect_s4406_OriginatorPlad(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
675 offset = dissect_s4406_MilitaryString(implicit_tag, tvb, offset, actx, tree, hf_index);
681 static const asn_namedbit Acp127NotificationType_bits[] = {
682 { 0, &hf_s4406_Acp127NotificationType_negative, -1, -1, "negative", NULL },
683 { 1, &hf_s4406_Acp127NotificationType_positive, -1, -1, "positive", NULL },
684 { 2, &hf_s4406_Acp127NotificationType_transfer, -1, -1, "transfer", NULL },
685 { 0, NULL, 0, 0, NULL, NULL }
689 dissect_s4406_Acp127NotificationType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
690 offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
691 Acp127NotificationType_bits, hf_index, ett_s4406_Acp127NotificationType,
700 dissect_s4406_BodyPartSequenceNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
701 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
708 static const ber_sequence_t BodyPartSecurityLabel_set[] = {
709 { &hf_s4406_body_part_security_label, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_x411_SecurityLabel },
710 { &hf_s4406_body_part_sequence_number, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_BodyPartSequenceNumber },
711 { NULL, 0, 0, 0, NULL }
715 dissect_s4406_BodyPartSecurityLabel(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
716 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
717 BodyPartSecurityLabel_set, hf_index, ett_s4406_BodyPartSecurityLabel);
723 static const ber_sequence_t SEQUENCE_OF_BodyPartSecurityLabel_sequence_of[1] = {
724 { &hf_s4406_body_part_security_labels_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_s4406_BodyPartSecurityLabel },
728 dissect_s4406_SEQUENCE_OF_BodyPartSecurityLabel(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
729 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
730 SEQUENCE_OF_BodyPartSecurityLabel_sequence_of, hf_index, ett_s4406_SEQUENCE_OF_BodyPartSecurityLabel);
736 static const ber_sequence_t SecurityInformationLabels_sequence[] = {
737 { &hf_s4406_content_security_label, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_x411_SecurityLabel },
738 { &hf_s4406_heading_security_label, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_x411_SecurityLabel },
739 { &hf_s4406_body_part_security_labels, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_s4406_SEQUENCE_OF_BodyPartSecurityLabel },
740 { NULL, 0, 0, 0, NULL }
744 dissect_s4406_SecurityInformationLabels(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
745 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
746 SecurityInformationLabels_sequence, hf_index, ett_s4406_SecurityInformationLabels);
752 static const value_string s4406_PriorityLevelQualifier_vals[] = {
760 dissect_s4406_PriorityLevelQualifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
761 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
769 static void dissect_InformationObject_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
771 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
772 dissect_s4406_InformationObject(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_InformationObject_PDU);
774 static void dissect_MMMessageData_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
776 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
777 dissect_s4406_MMMessageData(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_MMMessageData_PDU);
779 static void dissect_MMMessageParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
781 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
782 dissect_s4406_MMMessageParameters(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_MMMessageParameters_PDU);
784 static void dissect_ExemptedAddressSeq_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
786 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
787 dissect_s4406_ExemptedAddressSeq(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_ExemptedAddressSeq_PDU);
789 static void dissect_ExtendedAuthorisationInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
791 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
792 dissect_s4406_ExtendedAuthorisationInfo(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_ExtendedAuthorisationInfo_PDU);
794 static void dissect_DistributionCodes_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
796 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
797 dissect_s4406_DistributionCodes(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_DistributionCodes_PDU);
799 static void dissect_HandlingInstructions_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
801 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
802 dissect_s4406_HandlingInstructions(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_HandlingInstructions_PDU);
804 static void dissect_MessageInstructions_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
806 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
807 dissect_s4406_MessageInstructions(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_MessageInstructions_PDU);
809 static void dissect_CodressMessage_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
811 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
812 dissect_s4406_CodressMessage(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_CodressMessage_PDU);
814 static void dissect_OriginatorReference_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
816 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
817 dissect_s4406_OriginatorReference(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_OriginatorReference_PDU);
819 static void dissect_PrimaryPrecedence_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
821 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
822 dissect_s4406_PrimaryPrecedence(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_PrimaryPrecedence_PDU);
824 static void dissect_CopyPrecedence_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
826 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
827 dissect_s4406_CopyPrecedence(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_CopyPrecedence_PDU);
829 static void dissect_MessageType_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
831 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
832 dissect_s4406_MessageType(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_MessageType_PDU);
834 static void dissect_AddressListDesignatorSeq_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
836 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
837 dissect_s4406_AddressListDesignatorSeq(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_AddressListDesignatorSeq_PDU);
839 static void dissect_OtherRecipientDesignatorSeq_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
841 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
842 dissect_s4406_OtherRecipientDesignatorSeq(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_OtherRecipientDesignatorSeq_PDU);
844 static void dissect_PilotInformationSeq_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
846 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
847 dissect_s4406_PilotInformationSeq(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_PilotInformationSeq_PDU);
849 static void dissect_Acp127MessageIdentifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
851 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
852 dissect_s4406_Acp127MessageIdentifier(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_Acp127MessageIdentifier_PDU);
854 static void dissect_OriginatorPlad_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
856 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
857 dissect_s4406_OriginatorPlad(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_OriginatorPlad_PDU);
859 static void dissect_Acp127NotificationType_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
861 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
862 dissect_s4406_Acp127NotificationType(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_Acp127NotificationType_PDU);
864 static void dissect_SecurityInformationLabels_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
866 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
867 dissect_s4406_SecurityInformationLabels(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_SecurityInformationLabels_PDU);
869 static void dissect_PriorityLevelQualifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
871 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
872 dissect_s4406_PriorityLevelQualifier(FALSE, tvb, 0, &asn1_ctx, tree, hf_s4406_PriorityLevelQualifier_PDU);
876 /*--- End of included file: packet-s4406-fn.c ---*/
877 #line 60 "packet-s4406-template.c"
881 * Dissect STANAG 4406 PDUs inside a PPDU.
884 dissect_s4406(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
887 proto_item *item=NULL;
888 proto_tree *tree=NULL;
890 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
893 item = proto_tree_add_item(parent_tree, proto_s4406, tvb, 0, -1, FALSE);
894 tree = proto_item_add_subtree(item, ett_s4406);
897 if (check_col(pinfo->cinfo, COL_PROTOCOL))
898 col_set_str(pinfo->cinfo, COL_PROTOCOL, "S4406");
899 if (check_col(pinfo->cinfo, COL_INFO))
900 col_set_str(pinfo->cinfo, COL_INFO, "Military");
902 dissect_s4406_InformationObject(TRUE, tvb, offset, &asn1_ctx , tree, -1);
907 /*--- proto_register_s4406 -------------------------------------------*/
908 void proto_register_s4406(void) {
911 static hf_register_info hf[] =
914 /*--- Included file: packet-s4406-hfarr.c ---*/
915 #line 1 "packet-s4406-hfarr.c"
916 { &hf_s4406_InformationObject_PDU,
917 { "InformationObject", "s4406.InformationObject",
918 FT_UINT32, BASE_DEC, VALS(x420_InformationObject_vals), 0,
919 "s4406.InformationObject", HFILL }},
920 { &hf_s4406_MMMessageData_PDU,
921 { "MMMessageData", "s4406.MMMessageData",
922 FT_NONE, BASE_NONE, NULL, 0,
923 "s4406.MMMessageData", HFILL }},
924 { &hf_s4406_MMMessageParameters_PDU,
925 { "MMMessageParameters", "s4406.MMMessageParameters",
926 FT_NONE, BASE_NONE, NULL, 0,
927 "s4406.MMMessageParameters", HFILL }},
928 { &hf_s4406_ExemptedAddressSeq_PDU,
929 { "ExemptedAddressSeq", "s4406.ExemptedAddressSeq",
930 FT_UINT32, BASE_DEC, NULL, 0,
931 "s4406.ExemptedAddressSeq", HFILL }},
932 { &hf_s4406_ExtendedAuthorisationInfo_PDU,
933 { "ExtendedAuthorisationInfo", "s4406.ExtendedAuthorisationInfo",
934 FT_STRING, BASE_NONE, NULL, 0,
935 "s4406.ExtendedAuthorisationInfo", HFILL }},
936 { &hf_s4406_DistributionCodes_PDU,
937 { "DistributionCodes", "s4406.DistributionCodes",
938 FT_NONE, BASE_NONE, NULL, 0,
939 "s4406.DistributionCodes", HFILL }},
940 { &hf_s4406_HandlingInstructions_PDU,
941 { "HandlingInstructions", "s4406.HandlingInstructions",
942 FT_UINT32, BASE_DEC, NULL, 0,
943 "s4406.HandlingInstructions", HFILL }},
944 { &hf_s4406_MessageInstructions_PDU,
945 { "MessageInstructions", "s4406.MessageInstructions",
946 FT_UINT32, BASE_DEC, NULL, 0,
947 "s4406.MessageInstructions", HFILL }},
948 { &hf_s4406_CodressMessage_PDU,
949 { "CodressMessage", "s4406.CodressMessage",
950 FT_INT32, BASE_DEC, NULL, 0,
951 "s4406.CodressMessage", HFILL }},
952 { &hf_s4406_OriginatorReference_PDU,
953 { "OriginatorReference", "s4406.OriginatorReference",
954 FT_STRING, BASE_NONE, NULL, 0,
955 "s4406.OriginatorReference", HFILL }},
956 { &hf_s4406_PrimaryPrecedence_PDU,
957 { "PrimaryPrecedence", "s4406.PrimaryPrecedence",
958 FT_INT32, BASE_DEC, VALS(s4406_PrimaryPrecedence_vals), 0,
959 "s4406.PrimaryPrecedence", HFILL }},
960 { &hf_s4406_CopyPrecedence_PDU,
961 { "CopyPrecedence", "s4406.CopyPrecedence",
962 FT_INT32, BASE_DEC, VALS(s4406_CopyPrecedence_vals), 0,
963 "s4406.CopyPrecedence", HFILL }},
964 { &hf_s4406_MessageType_PDU,
965 { "MessageType", "s4406.MessageType",
966 FT_NONE, BASE_NONE, NULL, 0,
967 "s4406.MessageType", HFILL }},
968 { &hf_s4406_AddressListDesignatorSeq_PDU,
969 { "AddressListDesignatorSeq", "s4406.AddressListDesignatorSeq",
970 FT_UINT32, BASE_DEC, NULL, 0,
971 "s4406.AddressListDesignatorSeq", HFILL }},
972 { &hf_s4406_OtherRecipientDesignatorSeq_PDU,
973 { "OtherRecipientDesignatorSeq", "s4406.OtherRecipientDesignatorSeq",
974 FT_UINT32, BASE_DEC, NULL, 0,
975 "s4406.OtherRecipientDesignatorSeq", HFILL }},
976 { &hf_s4406_PilotInformationSeq_PDU,
977 { "PilotInformationSeq", "s4406.PilotInformationSeq",
978 FT_UINT32, BASE_DEC, NULL, 0,
979 "s4406.PilotInformationSeq", HFILL }},
980 { &hf_s4406_Acp127MessageIdentifier_PDU,
981 { "Acp127MessageIdentifier", "s4406.Acp127MessageIdentifier",
982 FT_STRING, BASE_NONE, NULL, 0,
983 "s4406.Acp127MessageIdentifier", HFILL }},
984 { &hf_s4406_OriginatorPlad_PDU,
985 { "OriginatorPlad", "s4406.OriginatorPlad",
986 FT_STRING, BASE_NONE, NULL, 0,
987 "s4406.OriginatorPlad", HFILL }},
988 { &hf_s4406_Acp127NotificationType_PDU,
989 { "Acp127NotificationType", "s4406.Acp127NotificationType",
990 FT_BYTES, BASE_HEX, NULL, 0,
991 "s4406.Acp127NotificationType", HFILL }},
992 { &hf_s4406_SecurityInformationLabels_PDU,
993 { "SecurityInformationLabels", "s4406.SecurityInformationLabels",
994 FT_NONE, BASE_NONE, NULL, 0,
995 "s4406.SecurityInformationLabels", HFILL }},
996 { &hf_s4406_PriorityLevelQualifier_PDU,
997 { "PriorityLevelQualifier", "s4406.PriorityLevelQualifier",
998 FT_UINT32, BASE_DEC, VALS(s4406_PriorityLevelQualifier_vals), 0,
999 "s4406.PriorityLevelQualifier", HFILL }},
1002 FT_NONE, BASE_NONE, NULL, 0,
1003 "x420.IPM", HFILL }},
1006 FT_NONE, BASE_NONE, NULL, 0,
1007 "x420.IPN", HFILL }},
1008 { &hf_s4406_ExemptedAddressSeq_item,
1009 { "ExemptedAddressSeq", "s4406.ExemptedAddressSeq_item",
1010 FT_NONE, BASE_NONE, NULL, 0,
1011 "s4406.ExemptedAddress", HFILL }},
1013 { "sics", "s4406.sics",
1014 FT_UINT32, BASE_DEC, NULL, 0,
1015 "s4406.SEQUENCE_OF_Sic", HFILL }},
1016 { &hf_s4406_sics_item,
1017 { "sics", "s4406.sics_item",
1018 FT_STRING, BASE_NONE, NULL, 0,
1019 "s4406.Sic", HFILL }},
1020 { &hf_s4406_dist_Extensions,
1021 { "dist-Extensions", "s4406.dist_Extensions",
1022 FT_UINT32, BASE_DEC, NULL, 0,
1023 "s4406.SEQUENCE_OF_DistributionExtensionField", HFILL }},
1024 { &hf_s4406_dist_Extensions_item,
1025 { "dist-Extensions", "s4406.dist_Extensions_item",
1026 FT_NONE, BASE_NONE, NULL, 0,
1027 "s4406.DistributionExtensionField", HFILL }},
1028 { &hf_s4406_dist_type,
1029 { "dist-type", "s4406.dist_type",
1030 FT_OID, BASE_NONE, NULL, 0,
1031 "s4406.OBJECT_IDENTIFIER", HFILL }},
1032 { &hf_s4406_dist_value,
1033 { "dist-value", "s4406.dist_value",
1034 FT_NONE, BASE_NONE, NULL, 0,
1035 "s4406.T_dist_value", HFILL }},
1036 { &hf_s4406_HandlingInstructions_item,
1037 { "HandlingInstructions", "s4406.HandlingInstructions_item",
1038 FT_STRING, BASE_NONE, NULL, 0,
1039 "s4406.MilitaryString", HFILL }},
1040 { &hf_s4406_MessageInstructions_item,
1041 { "MessageInstructions", "s4406.MessageInstructions_item",
1042 FT_STRING, BASE_NONE, NULL, 0,
1043 "s4406.MilitaryString", HFILL }},
1044 { &hf_s4406_message_type_type,
1045 { "type", "s4406.type",
1046 FT_INT32, BASE_DEC, VALS(s4406_TypeMessage_vals), 0,
1047 "s4406.TypeMessage", HFILL }},
1048 { &hf_s4406_identifier,
1049 { "identifier", "s4406.identifier",
1050 FT_STRING, BASE_NONE, NULL, 0,
1051 "s4406.MessageIdentifier", HFILL }},
1052 { &hf_s4406_AddressListDesignatorSeq_item,
1053 { "AddressListDesignatorSeq", "s4406.AddressListDesignatorSeq_item",
1054 FT_NONE, BASE_NONE, NULL, 0,
1055 "s4406.AddressListDesignator", HFILL }},
1056 { &hf_s4406_address_list_type,
1057 { "type", "s4406.type",
1058 FT_INT32, BASE_DEC, VALS(s4406_AddressListType_vals), 0,
1059 "s4406.AddressListType", HFILL }},
1060 { &hf_s4406_listName,
1061 { "listName", "s4406.listName",
1062 FT_NONE, BASE_NONE, NULL, 0,
1063 "x420.ORDescriptor", HFILL }},
1064 { &hf_s4406_notificationRequest,
1065 { "notificationRequest", "s4406.notificationRequest",
1066 FT_INT32, BASE_DEC, VALS(s4406_AddressListRequest_vals), 0,
1067 "s4406.AddressListRequest", HFILL }},
1068 { &hf_s4406_replyRequest,
1069 { "replyRequest", "s4406.replyRequest",
1070 FT_INT32, BASE_DEC, VALS(s4406_AddressListRequest_vals), 0,
1071 "s4406.AddressListRequest", HFILL }},
1072 { &hf_s4406_OtherRecipientDesignatorSeq_item,
1073 { "OtherRecipientDesignatorSeq", "s4406.OtherRecipientDesignatorSeq_item",
1074 FT_NONE, BASE_NONE, NULL, 0,
1075 "s4406.OtherRecipientDesignator", HFILL }},
1076 { &hf_s4406_other_recipient_type,
1077 { "type", "s4406.type",
1078 FT_INT32, BASE_DEC, VALS(s4406_OtherRecipientType_vals), 0,
1079 "s4406.OtherRecipientType", HFILL }},
1080 { &hf_s4406_designator,
1081 { "designator", "s4406.designator",
1082 FT_STRING, BASE_NONE, NULL, 0,
1083 "s4406.MilitaryString", HFILL }},
1084 { &hf_s4406_PilotInformationSeq_item,
1085 { "PilotInformationSeq", "s4406.PilotInformationSeq_item",
1086 FT_NONE, BASE_NONE, NULL, 0,
1087 "s4406.PilotInformation", HFILL }},
1088 { &hf_s4406_pilotPrecedence,
1089 { "pilotPrecedence", "s4406.pilotPrecedence",
1090 FT_INT32, BASE_DEC, VALS(s4406_PilotPrecedence_vals), 0,
1091 "s4406.PilotPrecedence", HFILL }},
1092 { &hf_s4406_pilotRecipient,
1093 { "pilotRecipient", "s4406.pilotRecipient",
1094 FT_UINT32, BASE_DEC, NULL, 0,
1095 "s4406.SEQUENCE_OF_ORDescriptor", HFILL }},
1096 { &hf_s4406_pilotRecipient_item,
1097 { "pilotRecipient", "s4406.pilotRecipient_item",
1098 FT_NONE, BASE_NONE, NULL, 0,
1099 "x420.ORDescriptor", HFILL }},
1100 { &hf_s4406_pilotSecurity,
1101 { "pilotSecurity", "s4406.pilotSecurity",
1102 FT_NONE, BASE_NONE, NULL, 0,
1103 "x411.SecurityLabel", HFILL }},
1104 { &hf_s4406_pilotHandling,
1105 { "pilotHandling", "s4406.pilotHandling",
1106 FT_UINT32, BASE_DEC, NULL, 0,
1107 "s4406.SEQUENCE_OF_MilitaryString", HFILL }},
1108 { &hf_s4406_pilotHandling_item,
1109 { "pilotHandling", "s4406.pilotHandling_item",
1110 FT_STRING, BASE_NONE, NULL, 0,
1111 "s4406.MilitaryString", HFILL }},
1112 { &hf_s4406_content_security_label,
1113 { "content-security-label", "s4406.content_security_label",
1114 FT_NONE, BASE_NONE, NULL, 0,
1115 "x411.SecurityLabel", HFILL }},
1116 { &hf_s4406_heading_security_label,
1117 { "heading-security-label", "s4406.heading_security_label",
1118 FT_NONE, BASE_NONE, NULL, 0,
1119 "x411.SecurityLabel", HFILL }},
1120 { &hf_s4406_body_part_security_labels,
1121 { "body-part-security-labels", "s4406.body_part_security_labels",
1122 FT_UINT32, BASE_DEC, NULL, 0,
1123 "s4406.SEQUENCE_OF_BodyPartSecurityLabel", HFILL }},
1124 { &hf_s4406_body_part_security_labels_item,
1125 { "body-part-security-labels", "s4406.body_part_security_labels_item",
1126 FT_NONE, BASE_NONE, NULL, 0,
1127 "s4406.BodyPartSecurityLabel", HFILL }},
1128 { &hf_s4406_body_part_security_label,
1129 { "body-part-security-label", "s4406.body_part_security_label",
1130 FT_NONE, BASE_NONE, NULL, 0,
1131 "x411.SecurityLabel", HFILL }},
1132 { &hf_s4406_body_part_sequence_number,
1133 { "body-part-sequence-number", "s4406.body_part_sequence_number",
1134 FT_INT32, BASE_DEC, NULL, 0,
1135 "s4406.BodyPartSequenceNumber", HFILL }},
1136 { &hf_s4406_Acp127NotificationType_negative,
1137 { "negative", "s4406.negative",
1138 FT_BOOLEAN, 8, NULL, 0x80,
1140 { &hf_s4406_Acp127NotificationType_positive,
1141 { "positive", "s4406.positive",
1142 FT_BOOLEAN, 8, NULL, 0x40,
1144 { &hf_s4406_Acp127NotificationType_transfer,
1145 { "transfer", "s4406.transfer",
1146 FT_BOOLEAN, 8, NULL, 0x20,
1149 /*--- End of included file: packet-s4406-hfarr.c ---*/
1150 #line 96 "packet-s4406-template.c"
1153 /* List of subtrees */
1154 static gint *ett[] = {
1157 /*--- Included file: packet-s4406-ettarr.c ---*/
1158 #line 1 "packet-s4406-ettarr.c"
1159 &ett_s4406_InformationObject,
1160 &ett_s4406_ExemptedAddressSeq,
1161 &ett_s4406_DistributionCodes,
1162 &ett_s4406_SEQUENCE_OF_Sic,
1163 &ett_s4406_SEQUENCE_OF_DistributionExtensionField,
1164 &ett_s4406_DistributionExtensionField,
1165 &ett_s4406_HandlingInstructions,
1166 &ett_s4406_MessageInstructions,
1167 &ett_s4406_MessageType,
1168 &ett_s4406_AddressListDesignatorSeq,
1169 &ett_s4406_AddressListDesignator,
1170 &ett_s4406_OtherRecipientDesignatorSeq,
1171 &ett_s4406_OtherRecipientDesignator,
1172 &ett_s4406_PilotInformationSeq,
1173 &ett_s4406_PilotInformation,
1174 &ett_s4406_SEQUENCE_OF_ORDescriptor,
1175 &ett_s4406_SEQUENCE_OF_MilitaryString,
1176 &ett_s4406_Acp127NotificationType,
1177 &ett_s4406_SecurityInformationLabels,
1178 &ett_s4406_SEQUENCE_OF_BodyPartSecurityLabel,
1179 &ett_s4406_BodyPartSecurityLabel,
1181 /*--- End of included file: packet-s4406-ettarr.c ---*/
1182 #line 102 "packet-s4406-template.c"
1185 /* Register protocol */
1186 proto_s4406 = proto_register_protocol(PNAME, PSNAME, PFNAME);
1188 /* Register fields and subtrees */
1189 proto_register_field_array(proto_s4406, hf, array_length(hf));
1190 proto_register_subtree_array(ett, array_length(ett));
1195 /*--- proto_reg_handoff_s4406 --- */
1196 void proto_reg_handoff_s4406(void) {
1198 /*--- Included file: packet-s4406-dis-tab.c ---*/
1199 #line 1 "packet-s4406-dis-tab.c"
1200 register_ber_oid_dissector("1.3.26.0.4406.0.2.0", dissect_PrimaryPrecedence_PDU, proto_s4406, "primary-precedence");
1201 register_ber_oid_dissector("1.3.26.0.4406.0.2.1", dissect_CopyPrecedence_PDU, proto_s4406, "copy-precedence");
1202 register_ber_oid_dissector("1.3.26.0.4406.0.2.2", dissect_MessageType_PDU, proto_s4406, "message-type");
1203 register_ber_oid_dissector("1.3.26.0.4406.0.2.3", dissect_AddressListDesignatorSeq_PDU, proto_s4406, "address-list-indicator");
1204 register_ber_oid_dissector("1.3.26.0.4406.0.2.4", dissect_ExemptedAddressSeq_PDU, proto_s4406, "exempted-address");
1205 register_ber_oid_dissector("1.3.26.0.4406.0.2.5", dissect_ExtendedAuthorisationInfo_PDU, proto_s4406, "extended-authorisation-info");
1206 register_ber_oid_dissector("1.3.26.0.4406.0.2.6", dissect_DistributionCodes_PDU, proto_s4406, "distribution-codes");
1207 register_ber_oid_dissector("1.3.26.0.4406.0.2.7", dissect_HandlingInstructions_PDU, proto_s4406, "handling-instructions");
1208 register_ber_oid_dissector("1.3.26.0.4406.0.2.8", dissect_MessageInstructions_PDU, proto_s4406, "message-instructions");
1209 register_ber_oid_dissector("1.3.26.0.4406.0.2.9", dissect_CodressMessage_PDU, proto_s4406, "codress-message");
1210 register_ber_oid_dissector("1.3.26.0.4406.0.2.10", dissect_OriginatorReference_PDU, proto_s4406, "originator-reference");
1211 register_ber_oid_dissector("1.3.26.0.4406.0.2.11", dissect_OtherRecipientDesignatorSeq_PDU, proto_s4406, "other-recipients-indicator");
1212 register_ber_oid_dissector("1.3.26.0.4406.0.2.12", dissect_PilotInformationSeq_PDU, proto_s4406, "pilot-forwarding-info");
1213 register_ber_oid_dissector("1.3.26.0.4406.0.2.13", dissect_Acp127MessageIdentifier_PDU, proto_s4406, "acp127-message-identifier");
1214 register_ber_oid_dissector("1.3.26.0.4406.0.2.14", dissect_OriginatorPlad_PDU, proto_s4406, "originator-plad");
1215 register_ber_oid_dissector("1.3.26.0.4406.0.2.15", dissect_Acp127NotificationType_PDU, proto_s4406, "acp127-notification-request");
1216 register_ber_oid_dissector("1.3.26.0.4406.0.2.17", dissect_SecurityInformationLabels_PDU, proto_s4406, "information-labels");
1217 register_ber_oid_dissector("1.3.26.0.4406.0.8.0", dissect_PriorityLevelQualifier_PDU, proto_s4406, "priority-level-qualifier");
1218 register_ber_oid_dissector("1.3.26.0.4406.0.7.9", dissect_MMMessageData_PDU, proto_s4406, "mm-message");
1219 register_ber_oid_dissector("1.3.26.0.4406.0.7.10", dissect_MMMessageParameters_PDU, proto_s4406, "mm-message-parameters");
1220 register_ber_oid_dissector("2.6.1.4.17.1.3.26.0.4406.0.4.1", dissect_InformationObject_PDU, proto_s4406, "id-et-content-p772");
1223 /*--- End of included file: packet-s4406-dis-tab.c ---*/
1224 #line 117 "packet-s4406-template.c"
1226 register_ber_oid_dissector("1.3.26.0.4406.0.4.1", dissect_s4406, proto_s4406, "Military Message");
1228 register_ber_syntax_dissector("MilitaryMessage", proto_s4406, dissect_s4406);
1229 register_ber_oid_syntax(".p772", NULL, "MilitaryMessage");