diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-09-08 01:25:27 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-09-08 01:25:27 +0000 |
commit | abdac5bfac5f330de14c545d8d5f503393801d1f (patch) | |
tree | 8f40df8d4876d6f439e85b98170d7aa27472d4b1 /ui/gtk | |
parent | cc26962f96217d834e1dcf11312f9521bde9841c (diff) |
Add the TCP RTT graph.
Show the time values in ms instead of s. Add a button and keyboard
shortcut to switch the connection direction. Move more code to
tap-tcp-stream.c. Update our axis labels.
svn path=/trunk/; revision=51832
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/tcp_graph.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index 157075accc..06e1656f8d 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -194,13 +194,6 @@ struct style_wscale { #define TIME_ORIGIN_CAP 0x10 #define TIME_ORIGIN_CONN 0x0 -/* this is used by rtt module only */ -struct unack { - struct unack *next; - double time; - unsigned int seqno; -}; - struct cross { int x, y; int draw; /* indicates whether we should draw cross at all */ @@ -462,10 +455,6 @@ static void tput_make_elmtlist(struct gtk_graph * ); static void tput_toggle_time_origin(struct gtk_graph * ); static void rtt_read_config(struct gtk_graph * ); static void rtt_initialize(struct gtk_graph * ); -static int rtt_is_retrans(struct unack * , unsigned int ); -static struct unack *rtt_get_new_unack(double , unsigned int ); -static void rtt_put_unack_on_list(struct unack ** , struct unack * ); -static void rtt_delete_unack_from_list(struct unack ** , struct unack * ); static void rtt_make_elmtlist(struct gtk_graph * ); static void rtt_toggle_seq_origin(struct gtk_graph * ); static void wscale_initialize(struct gtk_graph *); @@ -4291,65 +4280,6 @@ static void rtt_initialize(struct gtk_graph *g) g->zoom.y = g->geom.height / g->bounds.height; } -static int rtt_is_retrans(struct unack *list, unsigned int seqno) -{ - struct unack *u; - - for (u=list; u; u=u->next) { - if (u->seqno == seqno) - return TRUE; - } - return FALSE; -} - -static struct unack *rtt_get_new_unack(double time_val, unsigned int seqno) -{ - struct unack *u; - - u = (struct unack * )g_malloc(sizeof(struct unack)); - if (!u) - return NULL; - u->next = NULL; - u->time = time_val; - u->seqno = seqno; - return u; -} - -static void rtt_put_unack_on_list(struct unack **l, struct unack *new_unack) -{ - struct unack *u, *list = *l; - - for (u=list; u; u=u->next) { - if (!u->next) - break; - } - if (u) - u->next = new_unack; - else - *l = new_unack; -} - -static void rtt_delete_unack_from_list(struct unack **l, struct unack *dead) -{ - struct unack *u, *list = *l; - - if (!dead || !list) - return; - - if (dead == list) { - *l = list->next; - g_free(list); - } else { - for (u=list; u; u=u->next) { - if (u->next == dead) { - u->next = u->next->next; - g_free(dead); - break; - } - } - } -} - static void rtt_make_elmtlist(struct gtk_graph *g) { struct segment *tmp; |