Re: [Linuxptp-devel] linuxptp on ubuntu 14.04

2014-06-18 Thread Andrei Perietanu
My configuration right now is like this: two nodes plugged into a switch, representing a small private Network. There is no firewall (so no ip tables to turn off) the two nodes are: 10.20.20.1(master) and 10.20.20.2(slave)...an the wireshark capture looks like this: 559114.507488000

Re: [Linuxptp-devel] linuxptp on ubuntu 14.04

2014-06-18 Thread Andrei Perietanu
correct me if I'm wrong but isn't the master supposed to send the Announce message only once, at initialization time, and after that just send sync and follow-up messages? I can see a lot of Announce Messages sent by the master: 4811.00617800010.20.20.1224.0.1.129PTPv2106

Re: [Linuxptp-devel] linuxptp on ubuntu 14.04

2014-06-18 Thread Richard Cochran
On Wed, Jun 18, 2014 at 12:37:46PM +0100, Andrei Perietanu wrote: I'm running wireshark on the master Please try it on the slave, to see if the Sync messages are arriving. Thanks, Richard -- HPCC Systems Open Source

Re: [Linuxptp-devel] linuxptp on ubuntu 14.04

2014-06-18 Thread Andrei Perietanu
I tried running wireshark on both nodes and I see the exact same wireshark output on both of them, so sync messages are being received by the slave. On Wed, Jun 18, 2014 at 12:51 PM, Richard Cochran richardcoch...@gmail.com wrote: On Wed, Jun 18, 2014 at 12:37:46PM +0100, Andrei Perietanu

[Linuxptp-devel] [PATCH 3/3] makefile: remove programs on clean.

2014-06-18 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index e36835b..9ab3db1 100644 --- a/makefile +++ b/makefile @@ -69,7 +69,7 @@ install: $(PRG) install -p -m 644 -t $(man8dir)

[Linuxptp-devel] [PATCH 1/3] phc2sys: track sync offset and leap second status in each clock.

2014-06-18 Thread Miroslav Lichvar
This simplifies passing of pending leap seconds to the clocks and it will also allow to apply leap second to other clocks than system clock if needed in future. Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- phc2sys.c | 54 +++--- 1 file

[Linuxptp-devel] [PATCH 0/3] Set TAI offset of system clock

2014-06-18 Thread Miroslav Lichvar
Setting the TAI offset is useful to have correct information in the adjtimex field and also to get correct time from CLOCK_TAI, which is implemented by the kernel as CLOCK_REALTIME + TAI offset. The first patch simplifies the phc2sys code a bit to make it easier for the second patch. The third

[Linuxptp-devel] [PATCH 2/3] Set TAI offset of system clock.

2014-06-18 Thread Miroslav Lichvar
When synchronizing the system clock and the PTP UTC offset is valid and traceable, set the TAI offset of the clock to have correct CLOCK_TAI (which is implemented in the kernel as CLOCK_REALTIME + TAI offset). Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- clock.c| 9

Re: [Linuxptp-devel] [PATCH 3/3] makefile: remove programs on clean.

2014-06-18 Thread Richard Cochran
On Wed, Jun 18, 2014 at 03:44:50PM +0200, Miroslav Lichvar wrote: clean: - rm -f $(OBJECTS) $(DEPEND) + rm -f $(OBJECTS) $(DEPEND) $(PRG) distclean: clean rm -f $(PRG) The clean target removes all the build products except for the executables. The distclean target goes one

Re: [Linuxptp-devel] linuxptp on ubuntu 14.04

2014-06-18 Thread Richard Cochran
On Wed, Jun 18, 2014 at 01:13:27PM +0100, Andrei Perietanu wrote: I tried running wireshark on both nodes and I see the exact same wireshark output on both of them, so sync messages are being received by the slave. Okay, then something very strange is happening, and I can't imagine what is