From 03fd39d7f0c409a45e422d9142b48536ec5c8647 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 4 Sep 2013 23:15:59 +0000 Subject: Throughput graph updates. GTK+: Fix what appears to be an off-by-one error in the MA period (21 segments instead of 20). Throw away our initial segment length instead of subtracting it from the moving sum, which skews the sum. Qt: Add the througput graph. Use bits/s for the throughput y axis. Let the user switch between graph types. The dialog hangs when doing this. I haven't been able to track down the cause. Remove some unused code. Both: Tell the user that we're using a 20 segment moving average. Move more routines to tap-tcp-stream.[ch]. svn path=/trunk/; revision=51759 --- ui/tap-tcp-stream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/tap-tcp-stream.h') diff --git a/ui/tap-tcp-stream.h b/ui/tap-tcp-stream.h index 71f9a5c0f6..551b09af15 100644 --- a/ui/tap-tcp-stream.h +++ b/ui/tap-tcp-stream.h @@ -84,8 +84,12 @@ void graph_segment_list_free(struct tcp_graph * ); int compare_headers(address *saddr1, address *daddr1, guint16 sport1, guint16 dport1, const address *saddr2, const address *daddr2, guint16 sport2, guint16 dport2, int dir); +int get_num_dsegs(struct tcp_graph * ); +int get_num_acks(struct tcp_graph *, int * ); + struct tcpheader *select_tcpip_session(capture_file *, struct segment * ); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.1