When your network is designed, it might be situations where you want
interfaces to operate in different namespaces. If those interfaces are
used in a Boundary Clock (BC), the ptp4l program needs o be able to
handle configuration in several namespaces. It is not enough just to
open the ptp4l program in a certain namespace.
This series of patches adds the possibility to set namespace in the
configuration file and make the ptp4l program able to switch between
namespaces so that the configuration of the interface can be made in
correct namespace.
It also includes some small fixes found along the way.
Patch 1: Adds network_namespace as a configuration parameter for each
interface.
Patch 2-3: Small fixes found along the way in sk.c
Patch 4: Adds the functionality needed to reassociate namespace for
the ptp4l program.
Patch 5: Introduce the handling of reassosiation of namespace before
function calls thats demands same namespace as the interface
operates in.
Anders Selhammer (5):
config: Added network_namespace as config parameter
sk: Removed unused initialization of sk_tx_timeout
sk: Fix in sk_interface_guidaddr
sk: Added functionality for reassociate namespace
Added handling for reassociation of namespace
clock.c | 3 +++
config.c | 1 +
ptp4l.8 | 9 +++++++++
ptp4l.c | 9 ++++++++-
sk.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
sk.h | 18 ++++++++++++++++++
transport.c | 7 +++++++
7 files changed, 99 insertions(+), 5 deletions(-)
--
1.8.3.1
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel