Ethereal-cvs: [Ethereal-cvs] rev 17611: /trunk/epan/dissectors/: packet-frame.c packet-scsi.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Mon, 13 Mar 2006 10:29:03 GMT
User: sahlberg
Date: 2006/03/13 04:29 AM

Log:
 SCSI is fairly unique among the ethereal protocols in that it is sometimes normal for a PDU we receive back froma  device to be truncated.
 (report luns with allocation length 8 for example)
 
 Therefore it is a bit wrong to mark these packets as [malformed packets]
 Since they are truncated by scsi   and this is NOTY an error condition.
 
 
 Add a new exception type  :  ScsiBoundsError
 If this exception is caught by packet-frame, then print an appropriate message
 instead of [malformed packet]
 
 For SCSI, add helper macros TRY_SCSI_SHORT_PACKET   and END_...
 
 
 If the packet was not short in the normal sense (snaplen < packetlen) then intercept the exception for BoundsError and rethrow it as ScsiBoundsError instead.

Directory: /trunk/epan/dissectors/
  Changes    Path              Action
  +11 -0     packet-frame.c    Modified
  +47 -1     packet-scsi.c     Modified

Directory: /trunk/epan/
  Changes    Path            Action
  +12 -0     exceptions.h    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17611&view=rev