aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-13 12:14:24 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-13 12:14:24 +0000
commit444a3411c93e88d53cdb10826365c28c805d35a6 (patch)
tree60183d54bea73620683a045b744677682487681b /wiretap
parent552fb4e6b4b5b843ef790f4ee6917607b54295f5 (diff)
Skip extra info if present (IP with LTE PDCP threading info).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38983 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/catapult_dct2000.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c
index 1cdfbb3d95..e3285ea453 100644
--- a/wiretap/catapult_dct2000.c
+++ b/wiretap/catapult_dct2000.c
@@ -1010,7 +1010,6 @@ static gboolean parse_line(gchar *linebuff, gint line_length,
atm_header_present = TRUE;
}
-
else
if (strcmp(protocol_name, "ppp") == 0) {
*encap = WTAP_ENCAP_PPP;
@@ -1089,9 +1088,20 @@ static gboolean parse_line(gchar *linebuff, gint line_length,
}
}
+ /* Skip next '/' */
+ n++;
+
+ /* If there is a number, skip all info to next '/'.
+ TODO: for IP encapsulation, should store PDCP ueid, drb in pseudo info
+ and display dct2000 dissector... */
+ if (isdigit(linebuff[n])) {
+ while ((n+1 < line_length) && linebuff[n] != '/') {
+ n++;
+ }
+ }
+
/* Skip '/' */
while ((n+1 < line_length) && linebuff[n] == '/') {
-
n++;
}