2004-11-17 08:42:31 +00:00
|
|
|
# smrse.cnf
|
|
|
|
# SMRSE conformation file
|
|
|
|
|
2005-08-02 05:21:19 +00:00
|
|
|
# $Id$
|
2004-11-17 08:42:31 +00:00
|
|
|
|
|
|
|
#.MODULE_IMPORT
|
|
|
|
|
|
|
|
#.EXPORTS
|
|
|
|
|
|
|
|
#.NO_EMIT
|
2008-07-23 21:55:56 +00:00
|
|
|
SemiOctetString
|
|
|
|
#.END
|
2004-11-17 08:42:31 +00:00
|
|
|
|
|
|
|
#.PDU
|
|
|
|
|
|
|
|
#.TYPE_RENAME
|
|
|
|
|
|
|
|
#.FIELD_RENAME
|
|
|
|
|
2004-11-26 23:14:30 +00:00
|
|
|
#.FN_BODY SMS-Address/address-value/octet-format
|
|
|
|
char *strp,tmpstr[21];
|
|
|
|
guint32 i, start_offset;
|
2013-03-04 06:48:36 +00:00
|
|
|
gint8 ber_class;
|
2004-11-26 23:14:30 +00:00
|
|
|
gboolean pc, ind;
|
2005-07-09 02:58:07 +00:00
|
|
|
gint32 tag;
|
2004-11-26 23:14:30 +00:00
|
|
|
guint32 len;
|
|
|
|
static char n2a[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
|
|
|
|
|
|
|
|
start_offset=offset;
|
|
|
|
|
|
|
|
/* skip the tag and length */
|
2013-03-04 06:48:36 +00:00
|
|
|
offset=dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &ber_class, &pc, &tag);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind);
|
2004-11-26 23:14:30 +00:00
|
|
|
if(len>10){
|
|
|
|
len=10;
|
|
|
|
}
|
|
|
|
strp=tmpstr;
|
|
|
|
for(i=0;i<len;i++){
|
|
|
|
*strp++=n2a[tvb_get_guint8(tvb, offset)&0x0f];
|
|
|
|
*strp++=n2a[(tvb_get_guint8(tvb, offset)>>4)&0x0f];
|
|
|
|
offset++;
|
|
|
|
}
|
|
|
|
*strp=0;
|
|
|
|
|
|
|
|
proto_tree_add_string(tree, hf_smrse_Octet_Format, tvb, start_offset, offset-start_offset, tmpstr);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
|
2004-11-17 08:42:31 +00:00
|
|
|
#.END
|
|
|
|
|
|
|
|
|