Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-dvmrp.c packet-gtp.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Oct 2001 15:31:16 -0600 (CST)
guy         2001/10/30 15:31:16 CST

  Modified files:
    .                    packet-dvmrp.c packet-gtp.c 
  Log:
  Fix a bunch of places where "tvb_get_letohl()" was being used to fetch
  IP addresses - either use "tvb_memcpy()", or just use
  "proto_tree_add_item()" and leave the fetching up to the core Ethereal
  code.
  
  In the DVMRP dissector, replace a bunch of other "proto_tree_add_XXX()"
  calls with "proto_tree_add_item()", and use
  "tvb_reported_length_remaining()" rather than "tvb_length_remaining()"
  (if we didn't capture enough data because the snapshot length was too
  low, we *want* an exception to be thrown, so that the frame is marked as
  a "Short Frame").
  
  Revision  Changes    Path
  1.3       +46 -61    ethereal/packet-dvmrp.c
  1.13      +13 -13    ethereal/packet-gtp.c