summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2012-09-16 13:13:02 +0000
committermelifaro <melifaro@FreeBSD.org>2012-09-16 13:13:02 +0000
commitbde38da8f25291ce18341692c06e5fece707f914 (patch)
tree7ce2461cd51b6a32b4fada3bd442567229dc678a
parent231fcd75886e71a617e8d1f74ba9b9f89900f369 (diff)
downloadFreeBSD-src-bde38da8f25291ce18341692c06e5fece707f914.zip
FreeBSD-src-bde38da8f25291ce18341692c06e5fece707f914.tar.gz
Add section describing existing filtering points.
Document byteorder behavior in AF_INET[6] hooks in new section. MFC after: 2 weeks
-rw-r--r--share/man/man9/pfil.931
1 files changed, 13 insertions, 18 deletions
diff --git a/share/man/man9/pfil.9 b/share/man/man9/pfil.9
index e0df8c9..b406c2f 100644
--- a/share/man/man9/pfil.9
+++ b/share/man/man9/pfil.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 29, 2004
+.Dd September 16, 2012
.Dt PFIL 9
.Os
.Sh NAME
@@ -122,6 +122,18 @@ The filter returns an error (errno) if the packet processing is to stop, or 0
if the processing is to continue.
If the packet processing is to stop, it is the responsibility of the
filter to free the packet.
+.Sh FILTERING POINTS
+Currently, filtering points are implemented for the following link types:
+.Pp
+.Bl -tag -width "AF_INET6" -offset XXX -compact
+.It AF_INET
+.It AF_INET6
+IPv4 and IPv6 packets. Note that packet header is already
+.Cm converted to host format.
+Host format has to be preserved in case of header modifications.
+.It AF_LINK
+Link-layer packets.
+.El
.Sh RETURN VALUES
If successful,
.Fn pfil_head_get
@@ -187,23 +199,6 @@ The
function
is only safe for internal use.
.Pp
-.Fx
-implements only hooks for
-.Dv AF_INET
-and
-.Dv AF_INET6 .
-Packets diverted through these hooks have data in
-host byte order contrary to the above statements.
-.Pp
-The
-.Xr if_bridge 4
-diverts
-.Dv AF_INET
-and
-.Dv AF_INET6
-traffic according to its sysctl settings, but contrary to the above
-statements, the data is provided in host byte order.
-.Pp
When a
.Vt pfil_head
is being modified, no traffic is diverted
OpenPOWER on IntegriCloud