Re: [Linuxptp-devel] [PATCH] Add options to configure TTL/hop limit for UDP/UDP6 transports.

2015-08-04 Thread Miroslav Lichvar
On Mon, Aug 03, 2015 at 10:02:06PM +0200, Richard Cochran wrote: On Mon, Aug 03, 2015 at 03:49:43PM +0200, Miroslav Lichvar wrote: +unsigned char udp_ttl = 1; ... This would be better it it were a per-port option, no? Definitely. That's actually how I originally wanted it, but when I saw

[Linuxptp-devel] [PATCH] Add options to configure TTL/hop limit for UDP/UDP6 transports.

2015-08-03 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- config.c| 12 config.h| 2 ++ default.cfg | 2 ++ ptp4l.8 | 10 ++ ptp4l.c | 3 +++ udp.c | 7 +++ udp.h | 5 + udp6.c | 6 ++ udp6.h | 5 + 9 files changed,

Re: [Linuxptp-devel] [PATCH] Add options to configure TTL/hop limit for UDP/UDP6 transports.

2015-08-03 Thread Richard Cochran
I have no problem with adding these options. On Mon, Aug 03, 2015 at 03:49:43PM +0200, Miroslav Lichvar wrote: +unsigned char udp_ttl = 1; ... + if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, udp_ttl, +sizeof(udp_ttl))) { + pr_err(setsockopt

Re: [Linuxptp-devel] [PATCH] Add options to configure TTL/hop limit for UDP/UDP6 transports.

2015-08-03 Thread Keller, Jacob E
On Mon, 2015-08-03 at 22:02 +0200, Richard Cochran wrote: I have no problem with adding these options. On Mon, Aug 03, 2015 at 03:49:43PM +0200, Miroslav Lichvar wrote: +unsigned char udp_ttl = 1; ... + if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, udp_ttl, +