Add address_to_bytes API.
authorMichael Mann <mmann78@netscape.net>
Wed, 22 Jun 2016 02:23:05 +0000 (22:23 -0400)
committerAnders Broman <a.broman58@gmail.com>
Wed, 22 Jun 2016 07:47:39 +0000 (07:47 +0000)
commit0bf1cb2342e5becdda56be41f0347068549a77fe
tree80a39ed33612f3907a6813f683d83204d1d3bf49
parentc664f72f36ed1ac4e50c020cd3afb1ccf55094c8
Add address_to_bytes API.

This will copy an address's "byte format" into a buffer.  The original
intended design is for export_pdu functionality, which tries to do
this "manually" for many address types (and creates undesired dependencies)

The default functionality if a "byte format function" isn't provided
(currently the case for all address types) is a memcpy of the address
data.  Providing "address to byte" functions to aid export PDU
functionality will be provided later.

Change-Id: I3703f9e617a8cef09165ad53a0f98c6372676b9b
Reviewed-on: https://code.wireshark.org/review/16070
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
20 files changed:
debian/libwireshark0.symbols
epan/address.h
epan/address_types.c
epan/address_types.h
epan/dissectors/packet-arcnet.c
epan/dissectors/packet-atalk.c
epan/dissectors/packet-devicenet.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ieee802154.c
epan/dissectors/packet-j1939.c
epan/dissectors/packet-jxta.c
epan/dissectors/packet-mp2t.c
epan/dissectors/packet-mstp.c
epan/dissectors/packet-mtp3.c
epan/dissectors/packet-sna.c
epan/dissectors/packet-tipc.c
epan/dissectors/packet-usb.c
epan/dissectors/packet-vines.c
epan/osi-utils.c
plugins/irda/packet-irda.c