Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/plugins/gryphon packet-gryphon.c

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, 11 Mar 2000 22:48:44 -0600 (CST)
gram        2000/03/11 22:48:39 CST

  Modified files:
    plugins/gryphon      packet-gryphon.c 
  Log:
  Break proto_tree_add_item_format() into multiple functions:
  	proto_tree_add_protocol_format()
  	proto_tree_add_uint_format()
  	proto_tree_add_ipxnet_format()
  	proto_tree_add_ipv4_format()
  	proto_tree_add_ipv6_format()
  	proto_tree_add_bytes_format()
  	proto_tree_add_string_format()
  	proto_tree_add_ether_format()
  	proto_tree_add_time_format()
  	proto_tree_add_double_format()
  	proto_tree_add_boolean_format()
  If using GCC 2.x, we can check the print-format against the variable args
  passed in. Regardless of compiler, we can now check at run-time that the
  field type passed into the function corresponds to what that function
  expects (FT_UINT, FT_BOOLEAN, etc.)
  
  Note that proto_tree_add_protocol_format() does not require a value field,
  since the value of a protocol is always NULL. It's more intuitive w/o the
  vestigial argument.
  
  Fixed a proto_tree_add_item_format-related bug in packet-isis-hello.c
  Fixed a variable usage bug in packet-v120.c. (ett_* was used instead of hf_*)
  
  Checked in Guy's fix for the function declearation for proto_tree_add_text()
  and proto_tree_add_notext().
  
  Revision  Changes    Path
  1.7       +71 -71    ethereal/plugins/gryphon/packet-gryphon.c