Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Alexander Bluhm
On Tue, Jun 28, 2016 at 06:54:40PM +0200, Jeremie Courreges-Anglas wrote: > Alexander Bluhm writes: > > > On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: > >> IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and > >> SOCK_DRAM here, or use more generic

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Jeremie Courreges-Anglas
Alexander Bluhm writes: > On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: >> IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and >> SOCK_DRAM here, or use more generic language? > > We should mention that it only works for TCP and UDP. This is the > i

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Alexander Bluhm
On Tue, Jun 28, 2016 at 01:27:59PM +0200, Jeremie Courreges-Anglas wrote: > IP_MINTTL also benefits from this. Do we want to list SOCK_STREAM and > SOCK_DRAM here, or use more generic language? We should mention that it only works for TCP and UDP. This is the ip(4) man page so naming the protoco

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-28 Thread Jeremie Courreges-Anglas
Renato Westphal writes: > 2016-06-27 19:01 GMT-03:00 Alexander Bluhm : >> On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: >>> Alexander Bluhm writes: >>> > The man page says IPV6_MINHOPCOUNT is only for unicast packets. >>> > The ugly part of the code is dealing with

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Renato Westphal
2016-06-27 20:30 GMT-03:00 Jeremie Courreges-Anglas : > Renato Westphal writes: > >> 2016-06-27 19:01 GMT-03:00 Alexander Bluhm : >>> On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: Alexander Bluhm writes: > The man page says IPV6_MINHOPCOUNT is only for uni

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Jeremie Courreges-Anglas
Renato Westphal writes: > 2016-06-27 19:01 GMT-03:00 Alexander Bluhm : >> On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: >>> Alexander Bluhm writes: >>> > The man page says IPV6_MINHOPCOUNT is only for unicast packets. >>> > The ugly part of the code is dealing with

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Renato Westphal
2016-06-27 19:01 GMT-03:00 Alexander Bluhm : > On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: >> Alexander Bluhm writes: >> > The man page says IPV6_MINHOPCOUNT is only for unicast packets. >> > The ugly part of the code is dealing with multicast packets. >> >> IIUC R

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Alexander Bluhm
On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote: > Alexander Bluhm writes: > > The man page says IPV6_MINHOPCOUNT is only for unicast packets. > > The ugly part of the code is dealing with multicast packets. > > IIUC Renato also needs multicast support. I thought it w

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Jérémie Courrèges-Anglas
Alexander Bluhm writes: > On Mon, Jun 27, 2016 at 08:46:12PM +0200, Jeremie Courreges-Anglas wrote: >> >> Renato would like to implement GTSM in ldpd(8), the first step would be >> to support IPV6_MINHOPCOUNT on SOCK_DGRAM sockets. The following diff >> seems to work fine for him. >> >> I did

Re: IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Alexander Bluhm
On Mon, Jun 27, 2016 at 08:46:12PM +0200, Jeremie Courreges-Anglas wrote: > > Renato would like to implement GTSM in ldpd(8), the first step would be > to support IPV6_MINHOPCOUNT on SOCK_DGRAM sockets. The following diff > seems to work fine for him. > > I did not go down all possible *_input()

IPV6_MINHOPCOUNT on UDP sockets

2016-06-27 Thread Jeremie Courreges-Anglas
Renato would like to implement GTSM in ldpd(8), the first step would be to support IPV6_MINHOPCOUNT on SOCK_DGRAM sockets. The following diff seems to work fine for him. I did not go down all possible *_input() methods, only regular TCP and UDP sockets. Is that enough to deserve the associated