Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-ncp.c packet-smb.c packet-afs.c
guy 1999/11/17 15:58:40 CST
Modified files:
. packet-ncp.c packet-smb.c packet-afs.c
packet-rpc.c packet.c packet.h file.c
packet-ncp.h
Log:
Provide a general mechanism by which dissectors can register "init"
routines, which are called before a dissection pass is made over all the
packets in a capture - the "init" routine would clear out any state
information that needs to be initialized before such a dissection pass.
Make the NCP, SMB, AFS, and ONC RPC dissectors register their "init"
routines with that mechanism, have the code that reads in a capture file
call the routine that calls all registered "init" routines rather than
calling a wired-in set of "init" routines, and also have the code that
runs a filtering or colorizing pass over all the packets call that
routine, as a filtering or colorizing pass is a dissection pass.
Have the ONC RPC "init" routine zero out the table of RPC calls, so that
it completely erases any state from the previous dissection pass (so
that, for example, if you run a filtering pass, it doesn't mark any
non-duplicate packets as duplicates because it remembers them from the
previous pass).
Revision Changes Path
1.22 +3 -2 ethereal/packet-ncp.c
1.41 +5 -4 ethereal/packet-smb.c
1.7 +3 -2 ethereal/packet-afs.c
1.17 +5 -3 ethereal/packet-rpc.c
1.55 +28 -1 ethereal/packet.c
1.144 +9 -4 ethereal/packet.h
1.120 +12 -9 ethereal/file.c
1.6 +1 -4 ethereal/packet-ncp.h