summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/lppe/lppe.cnf
blob: 9e5ec169a032eae91035ee58e2eb7728c105e5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# lppe.cnf
# llpe conformation file
# Copyright 2012-2018 Pascal Quantin

#.OPT
PER
UNALIGNED
#.END

#.IMPORT ../lpp/lpp-exp.cnf

#.PDU
OMA-LPPe-MessageExtension
#.END

#.OMIT_ASSIGNMENT

#.FIELD_RENAME
OMA-LPPe-MapDataReferenceElement/mapDataUrl mapDataUrl_choice
OMA-LPPe-WLAN-LocationDataLCI/latitude oma-LPPe-WLAN-LocationDataLCI_latitude
OMA-LPPe-WLAN-LocationDataLCI/longitude oma-LPPe-WLAN-LocationDataLCI_longitude
OMA-LPPe-WLAN-LocationDataLCI/altitude oma-LPPe-WLAN-LocationDataLCI_altitude

#.FIELD_ATTR
OMA-LPPe-MapDataReferenceElement/mapDataUrl     ABBREV=mapDataUrl_choice
OMA-LPPe-WLAN-LocationDataLCI/latitude          ABBREV=oMA-LPPe-WLAN-LocationDataLCI.latitude
OMA-LPPe-WLAN-LocationDataLCI/longitude         ABBREV=oMA-LPPe-WLAN-LocationDataLCI.longitude
OMA-LPPe-WLAN-LocationDataLCI/altitude          ABBREV=oMA-LPPe-WLAN-LocationDataLCI.altitude

#.FN_HDR OMA-LPPe-MessageExtension

  proto_tree_add_item(tree, proto_lppe, tvb, 0, -1, ENC_NA);

  col_append_sep_str(actx->pinfo->cinfo, COL_PROTOCOL, "/", "LPPe");

#.FN_BODY OMA-LPPe-Uri
  offset = dissect_per_restricted_character_string(tvb, offset, actx, tree, hf_index,
                                                      NO_BOUND, NO_BOUND, false, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:/?#[]@!$&'()*+,;=-._~%%", 85,
                                                      NULL);

#.FN_BODY OMA-LPPe-CivicLocation-pidf-lo/civicLocation VAL_PTR = &xml_tvb
  tvbuff_t *xml_tvb = NULL;
%(DEFAULT_BODY)s
  if (xml_tvb && xml_handle) {
    proto_tree *xml_tree = proto_item_add_subtree(actx->created_item, ett_lppe_civicLocation);
    call_dissector(xml_handle, xml_tvb, actx->pinfo, xml_tree);
  }
#.END