Skip extra info if present (IP with LTE PDCP threading info).
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Sep 2011 12:14:24 +0000 (12:14 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Sep 2011 12:14:24 +0000 (12:14 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38983 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/catapult_dct2000.c

index 1cdfbb3d95556a4846096ed5e8ef1589337850db..e3285ea453c6fa37e7911298cb9abd24510fef79 100644 (file)
@@ -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++;
     }