Ethereal-cvs: [Ethereal-cvs] rev 16298: /trunk/epan/dissectors/: packet-ndps.c

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

Date: Tue, 25 Oct 2005 00:28:42 GMT
User: guy
Date: 2005/10/24 07:28 PM

Log:
 Clean up "print_address()" - fix the indentation, do the check for a
 too-large address in common code, and *don't* use tvb_get_letohl() to
 get IPv4 addresses (just use proto_tree_add_item(), it works Just Fine).
 
 For integral values, always do the tvb_ensure_bytes_exist() test; don't
 just do it if the length is the expected value (the real problem is with
 bogus too-large lengths, so it's more important to do the check if the
 length *isn't* the expected value!).  Fixes bug 549.

Directory: /trunk/epan/dissectors/
  Changes    Path             Action
  +18 -17    packet-ndps.c    Modified



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