Ethereal-dev: Re: [Ethereal-dev] proto_tree_add_bytes_format vs proto_tree_add_XXX_format?

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 12 Oct 2000 17:30:04 -0700 (PDT)
> What does, say, proto_tree_add_ipv4_format do that
> proto_tree_add_bytes_format doesn't?

"proto_tree_add_ipv4_format()" marks the field as being an IPv4 address,
so that, for example, the packet-filtering code knows that it should be
compared with an IP address, and you can say

	myproto.addr == www.sun.com

in a filter expression, rather than having to say

	myproto.addr == 192:18:97:241

(assuming we currently support comparisons on "sequence of bytes"
fields).