diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-17 04:19:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-17 04:19:15 +0000 |
commit | 9612b74c16738b2b79fe6376122909741f836ffa (patch) | |
tree | 92c8229461c702ab93c30d50a7481658d805109b /follow.c | |
parent | 0d36ec8de2e587337c8d8bc787e40de23cda644a (diff) |
Added just enough fields to TCP to support "Follow TCP Stream". It works now.
Added the protocol IDs for ipx and IGMP, but not their fields.
svn path=/trunk/; revision=365
Diffstat (limited to 'follow.c')
-rw-r--r-- | follow.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ /* follow.c * - * $Id: follow.c,v 1.11 1999/07/13 02:52:51 gram Exp $ + * $Id: follow.c,v 1.12 1999/07/17 04:19:02 gram Exp $ * * Copyright 1998 Mike Hall <mlh@io.com> * @@ -62,8 +62,8 @@ build_follow_filter( packet_info *pi ) { char* buf = malloc(1024); if( pi->ipproto == 6 ) { /* TCP */ - sprintf( buf, "host %s and host %s and (ip proto \\tcp) and (port %d and port %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)", + pi->srcip, pi->destip, pi->srcport, pi->destport ); } else { free( buf ); |