Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal xdlc.h

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Sat, 9 Oct 1999 22:59:37 -0500 (CDT)
gram        1999/10/09 22:59:33 CDT

  Modified files:
    .                    xdlc.h 
  Log:
  Changed the macro XDLC_HAS_PAYLOAD(control) to look at only the first
  bit of 'control' to check to see if it's an information frame:
  
  #define XDLC_HAS_PAYLOAD(control) \
          (((control) & 0x1) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
  
  I had erroneously AND'ed with 0x3 when I first put the AND in there.
  
  Revision  Changes    Path
  1.8       +2 -2      ethereal/xdlc.h