summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw.8
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-11-12 13:05:17 +0000
committerluigi <luigi@FreeBSD.org>2010-11-12 13:05:17 +0000
commite7ccc85b8fa77badd0aebc86e7657d29f3710e08 (patch)
treefe24fb085ca1922cd3a49053ea6e53a072b83c11 /sbin/ipfw/ipfw.8
parentd5e8d236f4009fc2611f996c317e94b2c8649cf5 (diff)
downloadFreeBSD-src-e7ccc85b8fa77badd0aebc86e7657d29f3710e08.zip
FreeBSD-src-e7ccc85b8fa77badd0aebc86e7657d29f3710e08.tar.gz
The first customer of the SO_USER_COOKIE option:
the "sockarg" ipfw option matches packets associated to a local socket and with a non-zero so_user_cookie value. The value is made available as tablearg, so it can be used as a skipto target or pipe number in ipfw/dummynet rules. Code by Paul Joe, manpage by me. Submitted by: Paul Joe MFC after: 1 week
Diffstat (limited to 'sbin/ipfw/ipfw.8')
-rw-r--r--sbin/ipfw/ipfw.811
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8
index a954c1d..a984f70 100644
--- a/sbin/ipfw/ipfw.8
+++ b/sbin/ipfw/ipfw.8
@@ -1510,6 +1510,17 @@ interface.
Matches TCP packets that have the SYN bit set but no ACK bit.
This is the short form of
.Dq Li tcpflags\ syn,!ack .
+.It Cm sockarg
+Matches packets that are associated to a local socket and
+for which the SO_USER_COOKIE socket option has been set
+to a non-zero value. As a side effect, the value of the
+option is made available as
+.Cm tablearg
+value, which in turn can be used as
+.Cm skipto
+or
+.Cm pipe
+number.
.It Cm src-ip Ar ip-address
Matches IPv4 packets whose source IP is one of the address(es)
specified as an argument.
OpenPOWER on IntegriCloud