diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 1999-07-31 11:21:06 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 1999-07-31 11:21:06 +0000 |
commit | 98ebf4ee0af188f97a8f1e612df8f0eac8e17b91 (patch) | |
tree | 4e472236f8ec61437722e46ff6a8f84c69cdc499 /packet-ip.c | |
parent | 60d150011afefaa5f7dcae85b3620a914de5b3d6 (diff) |
Remove srcip and destip from packet_info since it is not safe to affect
string pointer from the result of ip_to_str (statically allocated string).
Use the ip_src and the new field ip_dst in follow.c to build a correct
string display filter.
svn path=/trunk/; revision=408
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-ip.c b/packet-ip.c index ddf05cbe99..82a200fad5 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.31 1999/07/29 05:46:55 gram Exp $ + * $Id: packet-ip.c,v 1.32 1999/07/31 11:21:05 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -734,12 +734,11 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { } } - pi.srcip = ip_to_str( (guint8 *) &iph.ip_src); - pi.destip = ip_to_str( (guint8 *) &iph.ip_dst); pi.ipproto = iph.ip_p; pi.iplen = iph.ip_len; pi.iphdrlen = lo_nibble(iph.ip_v_hl); pi.ip_src = iph.ip_src; + pi.ip_dst = iph.ip_dst; pi.payload = pi.iplen - hlen; offset += hlen; |