14#ifndef __TAP_TCP_STREAM_H__
15#define __TAP_TCP_STREAM_H__
21typedef enum tcp_graph_type_ {
52 uint8_t num_sack_ranges;
53 uint32_t sack_left_edge[MAX_TCP_SACK_RANGES];
54 uint32_t sack_right_edge[MAX_TCP_SACK_RANGES];
79void graph_segment_list_free(
struct tcp_graph * );
83#define COMPARE_CURR_DIR 0
84#define COMPARE_ANY_DIR 1
86int 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);
89int get_num_acks(
struct tcp_graph *,
int * );
98 unsigned int end_seqno;
101int rtt_is_retrans(
struct rtt_unack * ,
unsigned int );
102struct rtt_unack *rtt_get_new_unack(
double ,
unsigned int ,
unsigned int );
105void rtt_destroy_unack_list(
struct rtt_unack ** );
108tcp_seq_before(uint32_t s1, uint32_t s2) {
109 return (int32_t)(s1 - s2) < 0;
113tcp_seq_eq_or_after(uint32_t s1, uint32_t s2) {
114 return !tcp_seq_before(s1, s2);
118tcp_seq_after(uint32_t s1, uint32_t s2) {
119 return (int32_t)(s1 - s2) > 0;
122static inline int tcp_seq_before_or_eq(uint32_t s1, uint32_t s2) {
123 return !tcp_seq_after(s1, s2);
Definition tap-tcp-stream.h:94
Definition tap-tcp-stream.h:30
Definition tap-tcp-stream.h:57
void graph_segment_list_get(capture_file *cf, struct tcp_graph *tg)
Definition tap-tcp-stream.c:137