diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-04-06 07:01:01 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-04-06 07:01:01 +0000 |
commit | 155b04eda384184281994ffb3d5c42aad9e58305 (patch) | |
tree | 8c4cb956474ee8ec3a4468d3a42f81cf79c5de8d /epan/dissectors/packet-tcp.h | |
parent | 5f469a9e5aa5510f9ff9aa60b8f3606c3b65f590 (diff) |
export some desegmentation functions from TCP dissector to reuse them in SSL/TLS desegmentation
svn path=/trunk/; revision=21346
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r-- | epan/dissectors/packet-tcp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index 1a282b2f95..1c24f27ed2 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -34,6 +34,12 @@ #define TH_ECN 0x40 #define TH_CWR 0x80 +/* Idea for gt: either x > y, or y is much bigger (assume wrap) */ +#define GT_SEQ(x, y) ((gint32)((y) - (x)) < 0) +#define LT_SEQ(x, y) ((gint32)((x) - (y)) < 0) +#define GE_SEQ(x, y) ((gint32)((y) - (x)) <= 0) +#define LE_SEQ(x, y) ((gint32)((x) - (y)) <= 0) +#define EQ_SEQ(x, y) ((x) == (y)) /* the tcp header structure, passed to tap listeners */ struct tcpheader { @@ -86,6 +92,8 @@ tcp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint (*get_pdu_len)(packet_info *, tvbuff_t *, int), dissector_t dissect_pdu); +extern struct tcp_multisegment_pdu * +pdu_store_sequencenumber_of_next_pdu(packet_info *pinfo, guint32 seq, guint32 nxtpdu, emem_tree_t *multisegment_pdus); typedef struct _tcp_unacked_t { struct _tcp_unacked_t *next; |