Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Classes | Macros | Typedefs | Enumerations | Functions
tap-tcp-stream.h File Reference

Go to the source code of this file.

Classes

struct  segment
 
struct  tcp_graph
 
struct  rtt_unack
 

Macros

#define RTT_ALL   0x0001
 
#define RTT_SAK   0x0002
 
#define RTT_RTT   0x0004
 
#define RTT_KRN   0x0008
 
#define COMPARE_CURR_DIR   0
 
#define COMPARE_ANY_DIR   1
 

Typedefs

typedef enum tcp_graph_type_ tcp_graph_type
 
typedef enum rtt_sampling_method_ rtt_sampling_method
 

Enumerations

enum  tcp_graph_type_ {
  GRAPH_TSEQ_STEVENS , GRAPH_TSEQ_TCPTRACE , GRAPH_THROUGHPUT , GRAPH_RTT ,
  GRAPH_WSCALE , GRAPH_UNDEFINED
}
 
enum  rtt_sampling_method_ {
  SAMPLING_ALL , SAMPLING_ALL_SACK , SAMPLING_RTT , SAMPLING_KARN ,
  SAMPLING_UNDEFINED
}
 

Functions

void graph_segment_list_get (capture_file *cf, struct tcp_graph *tg)
 
void graph_segment_list_free (struct tcp_graph *)
 
int compare_headers (address *saddr1, address *daddr1, uint16_t sport1, uint16_t dport1, const address *saddr2, const address *daddr2, uint16_t sport2, uint16_t dport2, int dir)
 
int get_num_dsegs (struct tcp_graph *)
 
int get_num_acks (struct tcp_graph *, int *)
 
uint32_t select_tcpip_session (capture_file *)
 
bool rtt_is_retrans (struct rtt_unack *list, unsigned int seqno)
 
struct rtt_unackrtt_get_new_unack (double, unsigned int, unsigned int)
 
void rtt_put_unack_on_list (struct rtt_unack **, struct rtt_unack *)
 
void rtt_delete_unack_from_list (struct rtt_unack **, struct rtt_unack *)
 
void rtt_destroy_unack_list (struct rtt_unack **)
 

Detailed Description

TCP stream statistics Originally from tcp_graph.c by Pavel Mores pvl@u.nosp@m.h.cz Win32 port: rwh@u.nosp@m.nifi.nosp@m.edtec.nosp@m.h.co.nosp@m.m

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ graph_segment_list_get()

void graph_segment_list_get ( capture_file cf,
struct tcp_graph tg 
)

Fill in the segment list for a TCP graph

Parameters
cfCapture file to scan
tgTCP graph. A valid stream must be set. If either the source or destination address types are AT_NONE the address and port information will be filled in using the first packet in the specified stream.

◆ rtt_is_retrans()

bool rtt_is_retrans ( struct rtt_unack list,
unsigned int  seqno 
)

Check if a sequence number is currently in the Unacked list, typically for avoiding adding redundant sequences. In practice, the retrans meaning in this particular code is different from TCP's one and would rather cover Keep-Alives and Spurious Retrans.

Parameters
listThe list containing the Unacked sequences
seqnoThe sequence number to be searched for in the Unacked list
Returns
true if the list contains the sequence number, false otherwise