aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-12-13 02:24:23 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-13 02:24:23 +0000
commit677a1c6dc236c75344f3410ac740ef3b49ff8663 (patch)
tree08581cec2fec47739698a8b41d485ce576572b9a /epan
parent10022aee67c0992d1e9bcf8df80036e3fe958eef (diff)
Add code to check the checksums of TCP segments and UDP datagrams;
replace the existing checksummer with a modified version of the BSD checksumming code. Add a flag to the "packet_info" structure to indicate that a packet is the first fragment of a fragmented datagram, so that the checksummers won't try to checksum those. (It doesn't seem to add a lot of CPU overhead, so we don't introduce a flag to disable it, yet. Further checks may be necessary to see whether the overhead is just swamped by other overheads when scanning through a capture dissecting all frames, or if it truly is negligible.) Make the Boolean preference option controlling whether to make the top-level protocol tree item for TCP display a packet summary static to the TCP dissector (it doesn't need to be accessible outside the TCP dissector). svn path=/trunk/; revision=2751
Diffstat (limited to 'epan')
-rw-r--r--epan/packet.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 745b4a3cdf..dff25a94ad 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.14 2000/12/04 06:37:46 guy Exp $
+ * $Id: packet.h,v 1.15 2000/12/13 02:24:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -170,7 +170,8 @@ typedef struct _packet_info {
address net_dst; /* network-layer destination address */
address src; /* source address (net if present, DL otherwise )*/
address dst; /* destination address (net if present, DL otherwise )*/
- guint32 ipproto;
+ guint32 ipproto; /* IP protocol, if this is an IP packet */
+ gboolean fragmented; /* TRUE if the protocol is only a fragment */
port_type ptype; /* type of the following two port numbers */
guint32 srcport; /* source port */
guint32 destport; /* destination port */