Renato Westphal <[email protected]> writes:

> 2016-06-27 19:01 GMT-03:00 Alexander Bluhm <[email protected]>:
>> On Mon, Jun 27, 2016 at 11:57:08PM +0200, J??r??mie Courr??ges-Anglas wrote:
>>> Alexander Bluhm <[email protected]> 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 wouldn't be
>>> a problem to extend the IPV6_MINHOPCOUNT scope.
>>
>> If he needs it, just remove the word "unicast" from the man page.
>> Then it is OK bluhm@
>
> Yes, I need this to implement support for RFC 7552, which says: "(...)
> the LDP Link Hello packets MUST have their IPv6 Hop Limit set to 255,
> be checked for the same upon receipt (before any LDP-specific
> processing)". And LDP Link Hello packets are multicast UDP packets...
>
> Also, besides removing the word "unicast" from the man page, I'd go
> further and rename "datagrams" to "packets", which is a more generic
> term.

Committed.

IP_MINTTL also benefits from this.  Do we want to list SOCK_STREAM and
SOCK_DRAM here, or use more generic language?

Index: ip.4
===================================================================
RCS file: /cvs/src/share/man/man4/ip.4,v
retrieving revision 1.38
diff -u -p -p -u -r1.38 ip.4
--- ip.4        20 Oct 2015 22:08:19 -0000      1.38
+++ ip.4        28 Jun 2016 11:25:26 -0000
@@ -201,9 +201,8 @@ cmsg_type = IP_RECVTTL
 .Pp
 The
 .Dv IP_MINTTL
-option may be used on
-.Dv SOCK_STREAM
-sockets to discard packets with a TTL lower than the option value.
+option may be used on sockets to discard packets with a TTL lower than
+the option value.
 This can be used to implement the
 .Em Generalized TTL Security Mechanism (GTSM)
 according to RFC 5082.

-- 
jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to