Ethereal-dev: [Ethereal-dev] Re: get mac address in a dissector

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

From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Thu, 9 Mar 2006 12:01:00 +0000
There is no helper for getting an ethernet address from within a tvb.

There is a
proto_tree_add_ether()   if you just want to dissect it and have it
show up in the dissection pane

but no helper to read it out into a variable.


you might want to use tvb_memcpy() if you really want to read it from
the tvb into a variable.




On 3/9/06, david martinez <davidmfcg@xxxxxxxx> wrote:
> Hi, how can i get a mac addrees from the tvb???For Ipv4 or Ipv6 is
> tvb_get_ipv4 or tvb_get_ipv6, is anyone command similar for mac addres for
> example......tvb_get_ether....???Thanks
>
> ---------------------------------
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>