Geoff Salmon
2013-02-20 23:39:17 UTC
This is another attempt at adding support for more of the management
TLVs. It adds a last_tlv struct to the ptp_message that holds the data
for a flexibly-sized TLV. The layout of these TLVs' structs don't have
to match their on-the-wire representation.
This differs from the previous version by having fields in the
mgmt_clock_description struct be pointers into the message buffer.
tlv.c only handles changing the byte-order and setting the pointers
for received messages.
Geoff Salmon (4):
support TLVs with flexible size
adds CLOCK_DESCRIPTION struct
support GET CLOCK_DESCRIPTION and USER_DESCRIPTION mgmt messages
pmc: get CLOCK_DESCRIPTION and USER_DESCRIPTION
clock.c | 17 +++++++++++++
clock.h | 7 ++++++
ddt.h | 9 +++++--
msg.c | 12 ++++-----
msg.h | 7 ++++++
pmc.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
port.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
tlv.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
tlv.h | 38 +++++++++++++++++++++++++---
util.c | 17 +++++++------
10 files changed, 325 insertions(+), 27 deletions(-)
TLVs. It adds a last_tlv struct to the ptp_message that holds the data
for a flexibly-sized TLV. The layout of these TLVs' structs don't have
to match their on-the-wire representation.
This differs from the previous version by having fields in the
mgmt_clock_description struct be pointers into the message buffer.
tlv.c only handles changing the byte-order and setting the pointers
for received messages.
Geoff Salmon (4):
support TLVs with flexible size
adds CLOCK_DESCRIPTION struct
support GET CLOCK_DESCRIPTION and USER_DESCRIPTION mgmt messages
pmc: get CLOCK_DESCRIPTION and USER_DESCRIPTION
clock.c | 17 +++++++++++++
clock.h | 7 ++++++
ddt.h | 9 +++++--
msg.c | 12 ++++-----
msg.h | 7 ++++++
pmc.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
port.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
tlv.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
tlv.h | 38 +++++++++++++++++++++++++---
util.c | 17 +++++++------
10 files changed, 325 insertions(+), 27 deletions(-)
--
1.7.9.5
1.7.9.5