aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_list.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-23 18:08:17 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-23 18:08:17 +0000
commit6d8d2854c8cf998605e041987610986d09375c6a (patch)
tree49c7db39b4c44d02429daa16149f2ba63678af4e /gtk/packet_list.c
parent62f88a4a04d8e300ff108f6164e9016e8cdcc9c3 (diff)
From Sake Blok:
Fix for bug #491: Unexpected frame.time_delta behavior This patch ... fixes bug 491. It does this by changing the behaviour of the frame.time_delta field so it reflects the delta time between captured packets (tshark already did this). To keep the delta time between displayed packets, the field frame.time_delta_displayed is created. svn path=/trunk/; revision=21154
Diffstat (limited to 'gtk/packet_list.c')
-rw-r--r--gtk/packet_list.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/packet_list.c b/gtk/packet_list.c
index 7a1b5c9ec7..8ee1ad8996 100644
--- a/gtk/packet_list.c
+++ b/gtk/packet_list.c
@@ -170,7 +170,10 @@ packet_list_compare(EthCList *clist, gconstpointer ptr1, gconstpointer ptr2)
return COMPARE_TS(rel_ts);
case TS_DELTA:
- return COMPARE_TS(del_ts);
+ return COMPARE_TS(del_cap_ts);
+
+ case TS_DELTA_DIS:
+ return COMPARE_TS(del_dis_ts);
case TS_NOT_SET:
return 0;
@@ -185,7 +188,10 @@ packet_list_compare(EthCList *clist, gconstpointer ptr1, gconstpointer ptr2)
return COMPARE_TS(rel_ts);
case COL_DELTA_TIME:
- return COMPARE_TS(del_ts);
+ return COMPARE_TS(del_cap_ts);
+
+ case COL_DELTA_TIME_DIS:
+ return COMPARE_TS(del_dis_ts);
case COL_PACKET_LENGTH:
return COMPARE_NUM(pkt_len);