aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tcp.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-10-01 08:29:37 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-10-01 08:29:37 +0000
commitb1fe7b4f6bdd19b47bb5ef01e3280f6f5e2acaee (patch)
tree469015385bd66c0d924f444094baf9b94145393e /packet-tcp.h
parenta7c9b9a623650feb0a60578edae2421a7ed40117 (diff)
Have a flag in the "packet_info" structure, which indicates whether the
stuff currently being dissected is part of a packet included in an error packet (e.g., an ICMP Unreachable packet). Have the TCP dissector not bother doing reassembly if the TCP segment is part of an error packet, rather than an actual TCP transmission; other dissectors might want to treat those packets specially as well. Add to the "tcpinfo" structure a flag indicating whether the URG flag was set, rather than having the zero or non-zero value of the urgent pointer indicate that. (Yes, at least as I read RFC 793, a zero urgent pointer value isn't useful, as it means "the stuff before this segment is urgent", but it's certainly possible to put onto the wire a TCP segment with URG set and a zero urgent pointer.) Don't dissect the TCP header by grabbing the entire header with "tvb_memcpy()" and then pulling stuff out of it - extract stuff with individual tvbuff calls, and put stuff into the protocol tree and the Info column as we extract it, so that we can dissect a partial header. This lets us, for example, get the source and destination ports from the TCP header of the part of a TCP segment included in a minimum-length ICMPv4 error packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3986 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tcp.h')
-rw-r--r--packet-tcp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-tcp.h b/packet-tcp.h
index 552a575a95..e8ae0f8f72 100644
--- a/packet-tcp.h
+++ b/packet-tcp.h
@@ -1,6 +1,6 @@
/* packet-tcp.h
*
- * $Id: packet-tcp.h,v 1.7 2001/09/30 23:14:43 guy Exp $
+ * $Id: packet-tcp.h,v 1.8 2001/10/01 08:29:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -29,6 +29,7 @@
*/
struct tcpinfo {
gboolean is_reassembled; /* This is reassembled data. */
+ gboolean urgent; /* TRUE if "urgent_pointer is valid */
guint16 urgent_pointer; /* Urgent pointer value for the current packet. */
};