14 #ifndef __TAP_TCP_STREAM_H__
15 #define __TAP_TCP_STREAM_H__
21 typedef enum tcp_graph_type_ {
50 guint8 num_sack_ranges;
51 guint32 sack_left_edge[MAX_TCP_SACK_RANGES];
52 guint32 sack_right_edge[MAX_TCP_SACK_RANGES];
77 void graph_segment_list_free(
struct tcp_graph * );
81 #define COMPARE_CURR_DIR 0
82 #define COMPARE_ANY_DIR 1
84 int compare_headers(
address *saddr1,
address *daddr1, guint16 sport1, guint16 dport1,
const address *saddr2,
const address *daddr2, guint16 sport2, guint16 dport2,
int dir);
87 int get_num_acks(
struct tcp_graph *,
int * );
96 unsigned int end_seqno;
99 int rtt_is_retrans(
struct rtt_unack * ,
unsigned int );
100 struct rtt_unack *rtt_get_new_unack(
double ,
unsigned int ,
unsigned int );
103 void rtt_destroy_unack_list(
struct rtt_unack ** );
106 tcp_seq_before(guint32 s1, guint32 s2) {
107 return (gint32)(s1 - s2) < 0;
111 tcp_seq_eq_or_after(guint32 s1, guint32 s2) {
112 return !tcp_seq_before(s1, s2);
116 tcp_seq_after(guint32 s1, guint32 s2) {
117 return (gint32)(s1 - s2) > 0;
120 static inline int tcp_seq_before_or_eq(guint32 s1, guint32 s2) {
121 return !tcp_seq_after(s1, s2);
Definition: tap-tcp-stream.h:92
Definition: tap-tcp-stream.h:30
Definition: tap-tcp-stream.h:55
void graph_segment_list_get(capture_file *cf, struct tcp_graph *tg)
Definition: tap-tcp-stream.c:103