diff options
-rw-r--r-- | lib/libc/sys/getsockopt.2 | 8 | ||||
-rw-r--r-- | share/man/man4/divert.4 | 12 |
2 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 582f9ffb9e5..a123e7bd8b2 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsockopt.2,v 1.39 2013/04/08 06:26:12 guenther Exp $ +.\" $OpenBSD: getsockopt.2,v 1.40 2013/06/02 01:07:47 benno Exp $ .\" $NetBSD: getsockopt.2,v 1.7 1995/02/27 12:33:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: June 2 2013 $ .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -250,7 +250,9 @@ In order to receive packets for these addresses, .Dv SO_BINDANY needs to be combined with matching outgoing .Xr pf 4 -divert rules. +rules with the +.Ar divert-reply +parameter. For example, with the following rule the socket receives packets for 192.168.0.10 even if it is not a local address: .Pp diff --git a/share/man/man4/divert.4 b/share/man/man4/divert.4 index e7eeac6726a..87d6679a819 100644 --- a/share/man/man4/divert.4 +++ b/share/man/man4/divert.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: divert.4,v 1.12 2013/06/01 18:41:43 lteo Exp $ +.\" $OpenBSD: divert.4,v 1.13 2013/06/02 01:07:47 benno Exp $ .\" .\" Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 1 2013 $ +.Dd $Mdocdate: June 2 2013 $ .Dt DIVERT 4 .Os .Sh NAME @@ -48,13 +48,15 @@ processes a packet that matches a rule with the parameter (see .Xr pf.conf 5 -for details) it is immediately sent to the divert socket listening on the +for details) it is sent to the divert socket listening on the divert port specified in the rule. Note that .Ar divert-packet should not be confused with -.Ar divert-to , -which does not use divert sockets. +.Ar divert-to +or +.Ar divert-reply , +which do not use divert sockets. .Xr pf 4 reassembles TCP streams by default (if IP reassembly is not disabled) before sending them to the divert sockets. |