path: root/packet-nbns.c
diff options
authorGuy Harris <guy@alum.mit.edu>2001-08-05 00:16:36 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-05 00:16:36 +0000
commit749f27dd0e839a5d41984359594a98e357761028 (patch)
treeae3e6439c36bceb26d14d4943c0dc4654f87dabf /packet-nbns.c
parent74262f37de7dee3dae6d3bf993bc2a5af792fb58 (diff)
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. svn path=/trunk/; revision=3822
Diffstat (limited to 'packet-nbns.c')
0 files changed, 0 insertions, 0 deletions