Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-smb-mailslot.c packet-smb-mailslot.h
guy 2001/08/04 19:16:38 CDT
Modified files:
. packet-smb-mailslot.c
packet-smb-mailslot.h packet-smb-pipe.c
packet-smb-pipe.h packet-smb.c smb.h
Log:
Add a request/response flag to the "struct smb_info" structure, and use
that rather than passing another copy of that flag to dissectors of
particular messages.
Pass that structure to the pipe subdissector by making "pi.private"
point to it, rather than by passing it as an explicit argument.
Change more of the
if (dirn == 1) {
...
}
if (dirn == 0) {
...
}
stuff to
if (dirn == 1) {
...
} else {
...
}
and then, as per the first paragraph, check the "request" flag in the
"smb_info" structure rather than checking a "dirn" flag.
Set "last_transact2_command" to -1 in the "smb_request_val" structures
for TRANSACTION requests, as it doesn't apply to those requests.
As "dissect_transact_params()" doesn't do any work if the "TransactName"
argument is null, don't bother calling it for a reply if we don't have an
"smb_request_val" for the corresponding request, as that means we can't
find out the value to pass as the "TransactName" argument.
Revision Changes Path
1.15 +2 -2 ethereal/packet-smb-mailslot.c
1.2 +3 -3 ethereal/packet-smb-mailslot.h
1.23 +45 -44 ethereal/packet-smb-pipe.c
1.3 +3 -3 ethereal/packet-smb-pipe.h
1.93 +267 -254 ethereal/packet-smb.c
1.9 +5 -4 ethereal/smb.h