Do you have these set to prevent arp flux?

net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2

Denny


> On Sep 28, 2017, at 11:27, Loy, Matthias <matthias....@hbm.com> wrote:
> 
> Hello,
> 
> I'm using ptp4l on a device with 2 ethernet interfaces with ptp support.
> We configure one interface to use for synchronzation with udpv4 as
> transport protocol which works fine.
> 
> Lately I found that if configuring both interfaces to be in the same
> IPv4 subnet, synchronization stopped working even if forcing the
> interface to use.
> 
> I looked through the the code (udp.c) and found the function
> mcast_bind() that should force the interface for sending. It uses the
> socket option IP_MULTICAST_IF with a structure carrying the interface index.
> 
> The same socket option may also be called with the ipv4 address of the
> interface. I tried this variant and it works fine.
> 
> Attached you can find a patch with my changes.
> 
> kind regards,
> Matthias
> 
> 
> Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, 
> Germany | www.hbm.com
> 
> Registered as GmbH (German limited liability corporation) in the commercial 
> register at the local court of Darmstadt, HRB 1147
> Company domiciled in Darmstadt | Managing Director: Andreas Huellhorst | 
> Chairman of the board: Eoghan O�Lionaird
> 
> Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des 
> Amtsgerichts Darmstadt unter HRB 1147
> Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | 
> Aufsichtsratsvorsitzender: Eoghan O�Lionaird
> 
> The information in this email is confidential. It is intended solely for the 
> addressee. If you are not the intended recipient, please let me know and 
> delete this email.
> 
> Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich 
> fuer den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger 
> sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.
> <0002-make-sure-to-send-udpv4-over-specific-interface.patch>------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot_______________________________________________
> Linuxptp-users mailing list
> Linuxptp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxptp-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to