Coverage Report

Created: 2026-05-14 06:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wireshark/epan/dissectors/packet-mudurl.c
Line
Count
Source
1
/* Do not modify this file. Changes will be overwritten.                      */
2
/* Generated automatically by the ASN.1 to Wireshark dissector compiler       */
3
/* packet-mudurl.c                                                            */
4
/* asn2wrs.py -b -q -L -p mudurl -c ./mudurl.cnf -s ./packet-mudurl-template -D . -O ../.. MUDURL.asn */
5
6
/* packet-mudurl-template.c
7
 * Routines for mudurl found in draft-ietf-opsawg-mud
8
 * by Eliot Lear
9
 *
10
 * Wireshark - Network traffic analyzer
11
 * By Gerald Combs <gerald@wireshark.org>
12
 * Copyright 1998 Gerald Combs
13
 *
14
 * SPDX-License-Identifier: GPL-2.0-or-later
15
 */
16
17
#include "config.h"
18
19
#include <epan/packet.h>
20
#include <epan/asn1.h>
21
#include <wsutil/array.h>
22
23
#include "packet-ber.h"
24
/* #include "packet-mudurl.h" */ // At the moment we are not exporting.
25
#include "packet-x509af.h"
26
27
void proto_register_mudurl(void);
28
void proto_reg_handoff_mudurl(void);
29
30
31
/* Initialize the protocol and registered fields */
32
static int proto_mudurl;
33
static int hf_mudurl_MUDURLSyntax_PDU;            /* MUDURLSyntax */
34
35
/* Initialize the subtree pointers */
36
/* #include "packet-mudurl-ett.c" */
37
38
// static const char *object_identifier_id;
39
40
41
42
static unsigned
43
0
dissect_mudurl_MUDURLSyntax(bool implicit_tag _U_, tvbuff_t *tvb _U_, unsigned offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
44
0
  offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
45
0
                                            actx, tree, tvb, offset, hf_index,
46
0
                                            NULL);
47
48
0
  return offset;
49
0
}
50
51
/*--- PDUs ---*/
52
53
0
static int dissect_MUDURLSyntax_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
54
0
  unsigned offset = 0;
55
0
  asn1_ctx_t asn1_ctx;
56
0
  asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo);
57
0
  offset = dissect_mudurl_MUDURLSyntax(false, tvb, offset, &asn1_ctx, tree, hf_mudurl_MUDURLSyntax_PDU);
58
0
  return offset;
59
0
}
60
61
62
63
/*--- proto_register_mudurl ----------------------------------------------*/
64
15
void proto_register_mudurl(void) {
65
66
  /* List of fields */
67
15
  static hf_register_info hf[] = {
68
15
    { &hf_mudurl_MUDURLSyntax_PDU,
69
15
      { "MUDURLSyntax", "mudurl.MUDURLSyntax",
70
15
        FT_STRING, BASE_NONE, NULL, 0,
71
15
        NULL, HFILL }},
72
15
  };
73
74
  /* List of subtrees */
75
  /*  static int *ett[] = {
76
#include "packet-mudurl-ettarr.c"
77
  }; */
78
79
  /* Register protocol */
80
15
  proto_mudurl = proto_register_protocol("MUDURL", "MUDURL", "mudurl");
81
82
  /* Register fields and subtrees */
83
15
  proto_register_field_array(proto_mudurl, hf, array_length(hf));
84
  //  proto_register_subtree_array(ett, array_length(ett));
85
86
15
}
87
88
89
/*--- proto_reg_handoff_mudurl -------------------------------------------*/
90
15
void proto_reg_handoff_mudurl(void) {
91
15
  register_ber_oid_dissector("1.3.6.1.5.5.7.1.25", dissect_MUDURLSyntax_PDU, proto_mudurl, "id-pe-mud-url");
92
93
15
}