diff options
-rw-r--r-- | ethereal.c | 6 | ||||
-rw-r--r-- | follow.c | 9 | ||||
-rw-r--r-- | packet-ip.c | 5 | ||||
-rw-r--r-- | packet.h | 5 |
4 files changed, 13 insertions, 12 deletions
diff --git a/ethereal.c b/ethereal.c index 98198d16e5..04f09758ed 100644 --- a/ethereal.c +++ b/ethereal.c @@ -1,6 +1,6 @@ /* ethereal.c * - * $Id: ethereal.c,v 1.67 1999/07/28 23:16:32 guy Exp $ + * $Id: ethereal.c,v 1.68 1999/07/31 11:21:04 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -917,8 +917,8 @@ file_quit_cmd_cb (GtkWidget *widget, gpointer data) { } void blank_packetinfo() { - pi.srcip = 0; - pi.destip = 0; + pi.ip_src = 0; + pi.ip_dst = 0; pi.ipproto = 0; pi.srcport = 0; pi.destport = 0; @@ -1,6 +1,6 @@ /* follow.c * - * $Id: follow.c,v 1.12 1999/07/17 04:19:02 gram Exp $ + * $Id: follow.c,v 1.13 1999/07/31 11:21:05 deniel Exp $ * * Copyright 1998 Mike Hall <mlh@io.com> * @@ -62,8 +62,11 @@ build_follow_filter( packet_info *pi ) { char* buf = malloc(1024); if( pi->ipproto == 6 ) { /* TCP */ - sprintf( buf, "(ip.addr eq %s and ip.addr eq %s) and (tcp.port eq %d and tcp.port eq %d)", - pi->srcip, pi->destip, pi->srcport, pi->destport ); + sprintf( buf, + "(ip.addr eq %s and ip.addr eq %s) and (tcp.port eq %d and tcp.port eq %d)", + ip_to_str( (guint8 *) &pi->ip_src), + ip_to_str( (guint8 *) &pi->ip_dst), + pi->srcport, pi->destport ); } else { free( buf ); 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; @@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.75 1999/07/28 23:16:33 guy Exp $ + * $Id: packet.h,v 1.76 1999/07/31 11:21:06 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -117,9 +117,8 @@ typedef struct _frame_data { } frame_data; typedef struct _packet_info { - char *srcip; int ip_src; - char *destip; + int ip_dst; int ipproto; int srcport; int destport; |