path: root/packet-tcp.h
diff options
authorGuy Harris <guy@alum.mit.edu>2001-10-01 08:29:37 +0000
committerGuy Harris <guy@alum.mit.edu>2001-10-01 08:29:37 +0000
commitd627904aba3732e3badbca8467f88758c2668b25 (patch)
tree469015385bd66c0d924f444094baf9b94145393e /packet-tcp.h
parent3869ff8bfb9804ff27c558196efffbd75dc27263 (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. svn path=/trunk/; revision=3986
Diffstat (limited to 'packet-tcp.h')
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. */