Re: [Linuxptp-users] PTP4L daemon seems to have a problem with to a link local address for IPv6
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2012-11-25 15:29:38
|
On Sun, Nov 25, 2012 at 06:38:01AM +0100, Mario Molitor wrote: > > >It looks like we will have to set sin6_scope_id for the Pdelay > >messages in P2P mode in any case. I will do some testing on this to > >find out. > > Ok. Thanks I tried IPv6 with the OTMC 100, and it sends using site-local (0x5) scope. So I hacked that in like #define PTP_PRIMARY_MCAST_IP6ADDR "FF05:0:0:0:0:0:0:181" and it worked fine for me, both E2E and P2P mode. The Pdelay messages still work even though addr.sin6_scope_id was set to zero, while the actual interface index was three. Strange. I will make a few changes to fix this up: 1. clear the ipv6 address structure. 2. remember the interface index. 3. set addr.sin6_scope_id for Pdelay messages. 4. add an option to specify the ipv6 scope, and set addr.sin6_scope_id when appropriate Thanks, Richard |