diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-23 09:09:35 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-23 09:09:35 +0000 |
commit | ba74395cbe82f5fee8967247e5ea72f6918be845 (patch) | |
tree | 56aae2194ef5f2c2ef809bb5272ec76f57a8da32 /packet-tcp.c | |
parent | fb0480ae436b31994ee8a2213a78252055f8832a (diff) | |
download | wireshark-ba74395cbe82f5fee8967247e5ea72f6918be845.tar.gz wireshark-ba74395cbe82f5fee8967247e5ea72f6918be845.tar.bz2 wireshark-ba74395cbe82f5fee8967247e5ea72f6918be845.zip |
New feature. Statistics/EndpointTalkjers can now present a sortable table with a list of all seen conversations of a certain type.
Supported types are Ethernet/TokenRing/IP/UDP and TCP.
Will add FibreChannel soon.
The framework for this feature needs to be enhanced in the future so that by selecting one entry and click the right mousebutton, this will bring up a menu with Prepare/Match options with suboptions for AnyDirection, ForwardOnly or ReverseOnly which updates the display filter accordingly.
Had to update some of the taps as well to change them to use a proper address structure for the address fields.
We should now be able to to these stats correctly even for ip tunneled over ip tunnelled over ip ...
svn path=/trunk/; revision=8222
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index eec2304bb5..1f76df892e 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.200 2003/07/24 21:11:19 guy Exp $ + * $Id: packet-tcp.c,v 1.201 2003/08/23 09:09:33 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2106,8 +2106,8 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) tcph_count=0; } tcph=&tcphstruct[tcph_count]; - /* XXX add to ipv6 so this works for that protocol as well */ - tcph->ip_header=pinfo->private_data; + SET_ADDRESS(&tcph->ip_src, pinfo->src.type, pinfo->src.len, pinfo->src.data); + SET_ADDRESS(&tcph->ip_dst, pinfo->dst.type, pinfo->dst.len, pinfo->dst.data); if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCP"); |