diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-12-12 22:35:45 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-12-12 22:35:45 +0000 |
commit | 5db2d622e4fa800d406efe94d0b961bebd60420c (patch) | |
tree | 35427a200b1f2fab44dad1848de296381fd45cf5 /epan/dissectors/packet-gsm_sms.h | |
parent | 8d67e7b20cda96be65562e2b1040ea8712ffa698 (diff) |
From Michael Lum via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9554 :
GSM SMS: remove some globals and expose some UDH fields through dis_field_udh()
svn path=/trunk/; revision=53997
Diffstat (limited to 'epan/dissectors/packet-gsm_sms.h')
-rw-r--r-- | epan/dissectors/packet-gsm_sms.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_sms.h b/epan/dissectors/packet-gsm_sms.h index ef30f56e44..f1e439c51f 100644 --- a/epan/dissectors/packet-gsm_sms.h +++ b/epan/dissectors/packet-gsm_sms.h @@ -38,7 +38,7 @@ */ extern int gsm_sms_char_7bit_unpack(unsigned int offset, unsigned int in_length, unsigned int out_length, - const guint8 *input, unsigned char *output); + const guint8 *input, unsigned char *output); /* Convert an unpacked SMS string to UTF-8. * @@ -55,8 +55,21 @@ enum character_set { ASCII_7BITS }; +/* + * contains a subset of parameters dissected from the UDH + * that are useful in the GSM SMS dissector or other dissectors + * (packet-ansi_637.c) + */ +typedef struct { + guint16 sm_id; /* message identifier */ + guint16 frags; /* total number of fragments */ + guint16 frag; /* fragment number */ + guint16 port_src; /* application port addressing scheme source port */ + guint16 port_dst; /* application port addressing scheme destination port */ +} gsm_sms_udh_fields_t; + void dis_field_udh(tvbuff_t *tvb, proto_tree *tree, guint32 *offset, guint32 *length, - guint8 *udl, enum character_set cset, guint8 *fill_bits); + guint8 *udl, enum character_set cset, guint8 *fill_bits, gsm_sms_udh_fields_t *p_udh_fields); /* Data structure that can be optionally given to gsm_sms dissector */ typedef struct _gsm_sms_data_t { |