Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal file.c packet-rpc.c packet-rpc.h
guy 2000/08/24 01:19:57 CDT
Modified files:
. file.c packet-rpc.c packet-rpc.h
Log:
Instead of keeping in the information about an RPC call a count of the
number of replies seen, keep the frame number of the first request seen
for that call and the first reply seen for that call. Use that to
determine whether a request or reply is a duplicate or not.
That means that we don't have to reset the table of RPC calls on a
rescan of the capture (which didn't even fix all the cases where we'd
have misreported the original call or reply as a duplicate due to having
seen it once on the initial pass through the file and once again when,
for example, the user clicked on the packet); doing so causes plenty of
other problems, so don't do that - and don't clear the "visited" flag on
frames on a rescan, either, as that's only done because we were clearing
out conversations and calling all protocols' "init" routines.
As a free bonus, this means that, for a reply, we know what frame the
request was in; put that information into the protocol tree for the
reply, snoop-style.
Make the table of RPC call information, and the routines that manipulate
it, static to "packet-rpc.c"; nobody outside "packet-rpc.c" uses them.
Revision Changes Path
1.210 +1 -14 ethereal/file.c
1.38 +60 -22 ethereal/packet-rpc.c
1.18 +1 -19 ethereal/packet-rpc.h