Wireshark-bugs: [Wireshark-bugs] [Bug 5433] Add FT_EUI64 Field Type

Date: Thu, 2 Dec 2010 07:49:23 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5433

--- Comment #2 from Alexis La Goutte <alexis.lagoutte@xxxxxxxxx> 2010-12-02 07:49:22 PST ---
Created an attachment (id=5563)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5563)
Patch for add FT_EUI64 Field Type (Working Release...)

(In reply to comment #1)
> The 48 bit Ethernet MAC addresses are represented by FT_ETHER right now.  t
> sounds like EUI-64 should be added.  The /epan/ftypes/ directory is the place
> to start (FT_ETHER is defined in ftype-ether.c)

Thanks ! but there is not ftype-ether.c (but it is on ftype-bytes.c )

I start to work in this subject but i have some problem/answer

I based my code on FT_ETHER type, no problem for add FT_EUI64 in
proto_tree_add_item

But there is a proto_tree_add_eui64 function in
dissectors/packet-ieee802145.[ch] file.

The problem is the type of value attribute, the type is not the same between my
code (guint8* value) and ieee802145 dissector (guint64 value).

I easily convert some proto_tree_add_eui64 to proto_tree_add_item with FT_EUI64
Field Type. (See /* HELP ME ... */ in packet-ieee802145.c and
packet-zbee-nwk.c)
I have not found how to convert a guint64 to a pointer (guint8* )

my answer is what it is better ? a value attribut in guint64 or pointer ?

I attach a patch of my working (the code is not checked and fuzzed...)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.