Alexander Bluhm <[email protected]> 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 not go down all possible *_input() methods, only regular TCP and >> UDP sockets. Is that enough to deserve the associated manpage diff? >> >> Thoughts / oks? I'll admit that the code is getting a big ugly... > > 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 wouldn't be a problem to extend the IPV6_MINHOPCOUNT scope. > I don't know which is right. Is there a specification somewhere? Nope. IPV6_MINHOPCOUNT is almost undocumented in Linux land, where it only applies to TCP sockets. -- jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
