aboutsummaryrefslogtreecommitdiffstats
path: root/reordercap.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2012-09-24 09:42:22 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2012-09-24 09:42:22 +0000
commitd06c9779a237eb90ca1bb312bc30f6648d09b523 (patch)
treefea9129b2e2a4632f62be0766b29b5f8fddc58d3 /reordercap.c
parent21a21a69942a1a10eaa947250b19b8c15b7b3096 (diff)
Fix count of out-of-order frames reported at end of run.
svn path=/trunk/; revision=45089
Diffstat (limited to 'reordercap.c')
-rw-r--r--reordercap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/reordercap.c b/reordercap.c
index 5873468ba6..c083491654 100644
--- a/reordercap.c
+++ b/reordercap.c
@@ -176,14 +176,16 @@ static void ReorderListAdd(gint64 offset, guint32 length,
newFrameRecord->prev = tmp->prev;
/* Its next points to us */
newFrameRecord->prev->next = newFrameRecord;
+
+ /* Inserted after another item */
+ DEBUG_PRINT("*** Inc out out of order count\n");
+ g_OutOfOrder++;
}
/* Fix up next item */
newFrameRecord->next = tmp;
tmp->prev = newFrameRecord;
- g_OutOfOrder++;
-
return;
}
@@ -197,6 +199,10 @@ static void ReorderListAdd(gint64 offset, guint32 length,
newFrameRecord->next = NULL;
g_FrameListTail = newFrameRecord;
+ /* There were other items but we were earlier than them */
+ DEBUG_PRINT("*** Inc out out of order count\n");
+ g_OutOfOrder++;
+
return;
}
else {