From 2e25b97b46ac2c8de88f8d02672bcbacae3af22a Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 28 Jun 2016 17:32:58 +0000 Subject: [PATCH] IP_MINTTL and IPV6_MINHOPCOUNT work on TCP and UDP sockets Input from and ok bluhm@ --- share/man/man4/ip.4 | 9 ++++----- share/man/man4/ip6.4 | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/share/man/man4/ip.4 b/share/man/man4/ip.4 index 111432ba67a..b8daeb47ed8 100644 --- a/share/man/man4/ip.4 +++ b/share/man/man4/ip.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ip.4,v 1.38 2015/10/20 22:08:19 jmc Exp $ +.\" $OpenBSD: ip.4,v 1.39 2016/06/28 17:32:58 jca Exp $ .\" $NetBSD: ip.4,v 1.3 1994/11/30 16:22:19 jtc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)ip.4 8.2 (Berkeley) 11/30/93 .\" -.Dd $Mdocdate: October 20 2015 $ +.Dd $Mdocdate: June 28 2016 $ .Dt IP 4 .Os .Sh NAME @@ -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. diff --git a/share/man/man4/ip6.4 b/share/man/man4/ip6.4 index 497506462f7..8acb7a76204 100644 --- a/share/man/man4/ip6.4 +++ b/share/man/man4/ip6.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ip6.4,v 1.39 2016/06/28 11:23:57 jca Exp $ +.\" $OpenBSD: ip6.4,v 1.40 2016/06/28 17:32:58 jca Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -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. -- 2.20.1