diff options
author | Michael Mann <mmann78@netscape.net> | 2016-07-23 21:25:05 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-08-01 15:19:59 +0000 |
commit | edcc2f019e3729293d9410e1bb30dae6bc9b790a (patch) | |
tree | d8c31f1294cb9f5fe0ece0882e2aa66d1b63f6b3 /epan/dissectors/packet-tcp.h | |
parent | c992edc222233f7e49f975763925d1ffb3848beb (diff) |
Add OSI Layer 4 to exported PDU to handle TCP and UDP payloads.
This allows for much easier anonymized captures for protocols running
atop TCP/UDP.
Added support for "TCP dissector data" tag within export PDU (34) so that
the tcpinfo struct that TCP dissector normally passes to its subdissectors
can be saved.
Change-Id: Icd63c049162332e5bcb2720159e5cf8aac893788
Reviewed-on: https://code.wireshark.org/review/16285
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r-- | epan/dissectors/packet-tcp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index b3a068ac54..3d51fca444 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -113,14 +113,17 @@ typedef struct tcpheader { /* * Private data passed from the TCP dissector to subdissectors. + * NOTE: This structure is used by Export PDU functionality so + * make sure that handling is also updated if this structure + * changes! */ struct tcpinfo { guint32 seq; /* Sequence number of first byte in the data */ guint32 nxtseq; /* Sequence number of first byte after data */ guint32 lastackseq; /* Sequence number of last ack */ gboolean is_reassembled; /* This is reassembled data. */ - guint16 flags; /* TCP flags */ - guint16 urgent_pointer; /* Urgent pointer value for the current packet. */ + guint16 flags; /* TCP flags */ + guint16 urgent_pointer; /* Urgent pointer value for the current packet. */ }; /* |