Discussion:
[Linuxptp-devel] [PATCH 0/6] Getting info about a transport
Geoff Salmon
2013-01-09 00:21:22 UTC
Permalink
Adds an interface for getting a transport's type, physical address,
and protocol address. These will be needed to implement the
CLOCK_DESCRIPTION management TLV.

For the protocol address of udp and udp6 transports, the first IPv4 or
IPv6 address assigned to the network interface is returned.

Geoff Salmon (6):
Make enum transport_type match the networkProtocol enumeration
transport: adds interface for getting type, and physical/protocol
address
raw: implement getting physical and protocol addrs
add sk_interface_addr for getting an interface's IP
udp: implement getting physical and protocol addrs
udp6: implement getting physical and protocol addrs

raw.c | 16 ++++++++++++++
sk.c | 38 +++++++++++++++++++++++++++++++++
sk.h | 10 +++++++++
transport.c | 40 +++++++++++++++++++++++++++++------
transport.h | 32 ++++++++++++++++++++++++++--
transport_private.h | 6 ++++++
udp.c | 58 ++++++++++++++++++++++++++++++++++++++++++---------
udp6.c | 31 +++++++++++++++++++++++++++
8 files changed, 213 insertions(+), 18 deletions(-)
--
1.7.9.5
Loading...