Ethereal-dev: RE: [Ethereal-dev] Programming style/performance question

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

From: Khachaturov Vassilii <Vassilii.Khachaturov@xxxxxxxxxxxx>
Date: Wed, 28 Aug 2002 10:12:29 -0400
> 2. proto_tree_add_ipv4(ntree, hf_ip_addr, tvb, offset, 
> SIZE_IP_ADDR, ip);
> 
> 
> where hf_ip is defined anyway as:
> 
> { &hf_ip,
>     { "IP Address", "protocol.ip", FT_IPv4, BASE_DEC, NULL, 0x0, "IP
> Address", HFILL}},
> 
> 
> I assume #2.

Unless you have to do a fetch from the tvb to get that 'ip' variable first.