aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ulp/ulp.cnf
blob: 72179ac12fcc5185b750ee2d3ed25fa92e3da0c9 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# upl.cnf
# upl conformation file
# Copyright 2006-2010 Anders Broman 
# $Id$

#.OPT
PER
UNALIGNED
#.END

#.PDU
ULP-PDU
#.END


#.TYPE_RENAME
FrequencyInfo/modeSpecificInfo FrequencySpecificInfo
#.END

#.FIELD_RENAME
FrequencyInfo/modeSpecificInfo  modeSpecificFrequencyInfo
FrequencyInfo/modeSpecificInfo/fdd  fdd_fr
FrequencyInfo/modeSpecificInfo/tdd  tdd_fr
SlpSessionID/sessionID  sessionSlpID
SETId/min  minsi
#.END

#.FN_HDR ULP-PDU
	proto_tree_add_item(tree, proto_ulp, tvb, 0, -1, FALSE);

	if (check_col(actx->pinfo->cinfo, COL_PROTOCOL)) 
		col_set_str(actx->pinfo->cinfo, COL_PROTOCOL, PSNAME);
	if (check_col(actx->pinfo->cinfo, COL_INFO))
		col_clear(actx->pinfo->cinfo, COL_INFO);
#.END

#.FN_BODY UlpMessage  VAL_PTR = &UlpMessage

guint32 UlpMessage;

  %(DEFAULT_BODY)s

	if (check_col(%(ACTX)s->pinfo->cinfo, COL_INFO))
	{
	    col_append_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "%%s ", val_to_str(UlpMessage,ulp_UlpMessage_vals,"Unknown"));
	}
#.END

#.FN_BODY PosPayLoad/rrlpPayload  VAL_PTR = &rrlp_tvb
 tvbuff_t *rrlp_tvb;

%(DEFAULT_BODY)s

  if (rrlp_tvb && rrlp_handle) {
	call_dissector(rrlp_handle, rrlp_tvb, %(ACTX)s->pinfo, tree);
  }

#.FN_BODY SETId/msisdn VAL_PTR = &parameter_tvb
 tvbuff_t *parameter_tvb;
 asn1_ctx_t		asn1_ctx;

 /* "Hide" the first dissection to avoid double tree entries */
 hf_index = -1;
%(DEFAULT_BODY)s

if(!parameter_tvb)
	return offset;
/* msisdn is ISDN-addressstring */
	asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, actx->pinfo);
	dissect_gsm_map_ISDN_AddressString(TRUE, parameter_tvb, 0, &asn1_ctx, tree, hf_ulp_msisdn);

#.FN_BODY SETId/imsi VAL_PTR = &parameter_tvb
 tvbuff_t *parameter_tvb;
 asn1_ctx_t		asn1_ctx;

 /* "Hide" the first dissection to avoid double tree entries */
 hf_index = -1;
%(DEFAULT_BODY)s

if(!parameter_tvb)
	return offset;
	asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, actx->pinfo);
	dissect_gsm_map_IMSI(TRUE, parameter_tvb, 0, &asn1_ctx, tree, hf_ulp_imsi);


#.FN_BODY ThirdPartyID/sip-uri
# asn2wrs does not handle '%' in the resticted string ( Has to be there twice)
  offset = dissect_per_restricted_character_string(tvb, offset, actx, tree, hf_index,
                                                      1, 255, FALSE, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:./-_~%%#@?", 72,
                                                      NULL);
#.FN_BODY ThirdPartyID/ims-public-identity
# asn2wrs does not handle '%' in the resticted string ( Has to be there twice)
  offset = dissect_per_restricted_character_string(tvb, offset, actx, tree, hf_index,
                                                      1, 255, FALSE, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:./-_~%%#@?", 72,
                                                      NULL);
#.FN_BODY ThirdPartyID/uri
# asn2wrs does not handle '%' in the resticted string ( Has to be there twice)
  offset = dissect_per_restricted_character_string(tvb, offset, actx, tree, hf_index,
                                                      1, 255, FALSE, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./-_~%%#", 69,
                                                      NULL);


#.TYPE_ATTR
IPAddress/ipv4Address TYPE = FT_IPv4  DISPLAY = BASE_NONE  STRINGS = NULL  
IPAddress/ipv6Address TYPE = FT_IPv6  DISPLAY = BASE_NONE  STRINGS = NULL  
#.END