Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Ethereal: dev
Re: proto_tree_add_bytes_format vs proto_tree_add_XXX_format?
 

Index | Next | Previous | View Flat


guy at netapp

Oct 12, 2000, 5:30 PM


Views: 241
Permalink
Re: proto_tree_add_bytes_format vs proto_tree_add_XXX_format? [In reply to]

> 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).

Subject User Time
proto_tree_add_bytes_format vs proto_tree_add_XXX_format? mra at pobox Oct 12, 2000, 5:09 PM
    Re: proto_tree_add_bytes_format vs proto_tree_add_XXX_format? guy at netapp Oct 12, 2000, 5:30 PM
    Re: proto_tree_add_bytes_format vs proto_tree_add_XXX_format? guy at netapp Oct 12, 2000, 5:32 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.