On Tue, Jun 28, 2016 at 06:54:40PM +0200, Jeremie Courreges-Anglas wrote: > Alexander Bluhm <[email protected]> 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 > > ip(4) man page so naming the protocols is more specific than talking > > about the socket type. > > How about this version?
OK bluhm@ > > Index: ip.4 > =================================================================== > RCS file: /cvs/src/share/man/man4/ip.4,v > retrieving revision 1.38 > diff -u -p -r1.38 ip.4 > --- ip.4 20 Oct 2015 22:08:19 -0000 1.38 > +++ ip.4 28 Jun 2016 16:46:34 -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 TCP and UDP 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. > Index: ip6.4 > =================================================================== > RCS file: /cvs/src/share/man/man4/ip6.4,v > retrieving revision 1.39 > diff -u -p -r1.39 ip6.4 > --- ip6.4 28 Jun 2016 11:23:57 -0000 1.39 > +++ ip6.4 28 Jun 2016 16:53:09 -0000 > @@ -146,7 +146,7 @@ datagrams sent on this socket. > A value of \-1 resets to the default value. > .It Dv IPV6_MINHOPCOUNT Fa "int *" > Get or set the minimum hop limit header field for incoming > -packets received on this socket. > +packets received on TCP and UDP sockets. > 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
