guy at netapp
Oct 12, 2000, 5:30 PM
Post #2 of 3
> What does, say, proto_tree_add_ipv4_format do that
Re: proto_tree_add_bytes_format vs proto_tree_add_XXX_format?
[In reply to]
> 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"