10#ifndef __PACKET_TCP_H__
11#define __PACKET_TCP_H__
13#include "ws_symbol_export.h"
36#define IS_TH_FIN(x) (x & TH_FIN)
37#define IS_TH_URG(x) (x & TH_URG)
40#define GT_SEQ(x, y) ((int32_t)((y) - (x)) < 0)
41#define LT_SEQ(x, y) ((int32_t)((x) - (y)) < 0)
42#define GE_SEQ(x, y) ((int32_t)((y) - (x)) <= 0)
43#define LE_SEQ(x, y) ((int32_t)((x) - (y)) <= 0)
44#define EQ_SEQ(x, y) (x) == (y)
59 uint8_t mh_capable_flags;
62 uint64_t mh_dss_rawdsn;
63 uint64_t mh_dss_rawack;
64 uint16_t mh_dss_length;
99 #define MAX_TCP_SACK_RANGES 4
100 uint8_t num_sack_ranges;
101 uint32_t sack_left_edge[MAX_TCP_SACK_RANGES];
102 uint32_t sack_right_edge[MAX_TCP_SACK_RANGES];
120 uint16_t urgent_pointer;
145 bool proto_desegment,
unsigned fixed_len,
147 dissector_t dissect_pdu,
void* dissector_data);
150tcp_reassembly_table_functions;
153pdu_store_sequencenumber_of_next_pdu(
packet_info *pinfo, uint32_t seq, uint32_t nxtpdu,
wmem_tree_t *multisegment_pdus);
164 uint32_t frame_acked;
172 uint32_t dupack_frame;
173 uint32_t bytes_in_flight;
174 uint32_t push_bytes_sent;
176 uint32_t new_data_seq;
188 uint32_t first_frame;
191 uint32_t first_frame_with_seq;
194#define MSP_FLAGS_REASSEMBLE_ENTIRE_SEGMENT 0x00000001
196#define MSP_FLAGS_GOT_ALL_SEGMENTS 0x00000002
198#define MSP_FLAGS_MISSING_FIRST_SEGMENT 0x00000004
240 uint8_t static_flags;
256 uint32_t nextseqframe;
259 uint64_t maxseqtobeacked;
272 uint8_t static_flags;
293 MPTCP_HMAC_NOT_SET = 0,
297} mptcp_hmac_algorithm_t;
300#define MPTCP_CAPABLE_CRYPTO_MASK 0x3F
302#define MPTCP_CHECKSUM_MASK 0x80
309 uint16_t segment_count;
312 uint32_t lastnondupack;
315 uint32_t maxseqtobeacked;
318 uint32_t nextseqframe;
332 uint8_t num_sack_ranges;
333 uint32_t sack_left_edge[MAX_TCP_SACK_RANGES];
334 uint32_t sack_right_edge[MAX_TCP_SACK_RANGES];
340 uint32_t process_uid;
341 uint32_t process_pid;
348 uint8_t static_flags;
350#define TCP_MAX_UNACKED_SEGMENTS 10000
355 uint16_t maxsizeacked;
357 uint32_t push_bytes_sent;
359 uint8_t mp_operations;
361 bool closing_initiator;
368#define TCP_FLOW_REASSEMBLE_UNTIL_FIN 0x0001
372 uint32_t lastsegmentflags;
416 uint8_t mp_operations;
486 uint16_t server_port;
493 int8_t flow_direction : 2;
506 uint8_t conversation_completeness;
509 char *conversation_completeness_str;
512 bool had_acc_ecn_setup_syn;
513 bool had_acc_ecn_setup_syn_ack;
514 bool had_acc_ecn_option;
524 uint8_t tcp_snd_manual_analysis;
539 uint32_t seq, uint32_t nxtseq, uint32_t sport,
567extern void add_tcp_process_info(uint32_t frame_num,
address *local_addr,
address *remote_addr, uint16_t local_port, uint16_t remote_port, uint32_t uid, uint32_t pid,
char *username,
char *command);
573WS_DLL_PUBLIC uint32_t get_tcp_stream_count(
void);
579WS_DLL_PUBLIC uint32_t get_mptcp_stream_count(
void);
583extern char *tcp_follow_index_filter(
unsigned stream,
unsigned sub_stream);
584extern char *tcp_follow_address_filter(
address *src_addr,
address *dst_addr,
int src_port,
int dst_port);
Definition packet-tcp.h:228
Definition packet-tcp.h:206
Definition packet_info.h:43
Definition packet-tcp.h:347
Definition packet-tcp.h:155
Definition wmem_list.c:23
Definition wmem_tree-int.h:48
Definition conversation.h:223
Definition epan_dissect.h:28
Definition packet-tcp.h:398
Definition packet-tcp.h:530
Definition packet-tcp.h:271
Definition reassemble.h:149
Definition packet-tcp.h:163
Definition packet-tcp.h:419
Definition packet-tcp.h:307
Definition packet-tcp.h:185
Definition packet-tcp.h:521
Definition packet-tcp.h:339
Definition packet-tcp.h:114
Definition tvbuff-int.h:35