Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal dfilter-grammar.y dfilter-scanner.l

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: Wed, 15 Sep 1999 01:13:27 -0500 (CDT)
gram        1999/09/15 01:13:25 CDT

  Modified files:
    .                    dfilter-grammar.y dfilter-scanner.l 
                         packet-tr.c proto.c proto.h 
  Log:
  Changed (again) the way that the FT_BOOLEAN field type works internally.
  Dissector code can add FT_BOOLEAN fields to the proto_tree and pass TRUE
  or FALSE values (non-zero and zero values). The display filter language,
  however, treats the checking for the existence of a FT_BOOLEAN field as
  the checking for its truth. Before this change, packet-tr.c was the only
  dissector using FT_BOOLEAN fields, and it only added the field to the
  proto_tree if the TRUE; the dissector was determining the difference between
  the check for existence and the check for truth.
  
  I made this change because packet-ppp.c added some FT_BOOLEAN fields and
  added them to the tree regardless of truth value, It's more natural just to
  do it this way and let the display filter code worry about whether to
  check for existence or truth. So that's how it works now.
  
  Revision  Changes    Path
  1.18      +28 -10    ethereal/dfilter-grammar.y
  1.12      +5 -4      ethereal/dfilter-scanner.l
  1.25      +4 -4      ethereal/packet-tr.c
  1.27      +3 -3      ethereal/proto.c
  1.12      +1 -2      ethereal/proto.h