]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
libxt_ipv4options: add manpage
authorJan Engelhardt <jengelh@medozas.de>
Wed, 11 Mar 2009 16:22:56 +0000 (17:22 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 19 Mar 2009 09:34:27 +0000 (10:34 +0100)
doc/changelog.txt
extensions/libxt_ipv4options.man [new file with mode: 0644]

index 39348a05793d19b48c3a049d84ec10c9f660b658..1575fbc21e55c7dd0829dbf35e38526144005a48 100644 (file)
@@ -1,5 +1,8 @@
 
 
+- added a reworked ipv4options match
+
+
 Xtables-addons 1.12 (March 07 2009)
 ===================================
 - ipset: fix for compilation with 2.6.29-rt
diff --git a/extensions/libxt_ipv4options.man b/extensions/libxt_ipv4options.man
new file mode 100644 (file)
index 0000000..0628804
--- /dev/null
@@ -0,0 +1,47 @@
+The "ipv4options" module allows to match against a set of IPv4 header options.
+.TP
+\fB\-\-flags\fP [\fB!\fP]\fIsymbol\fP[\fB,\fP[\fB!\fP]\fIsymbol...\fP]
+Specify the options that shall appear or not appear in the header. Each
+symbol specification is delimited by a comma, and a '!' can be prefixed to
+a symbol to negate its presence. Symbols are either the name of an IPv4 option
+or its number. See examples below.
+.TP
+\fB\-\-any\fP
+By default, all of the flags specified must be present/absent, that is, they
+form an AND condition. Use the \-\-any flag instead to use an OR condition
+where only at least one symbol spec must be true.
+.PP
+Known symbol names (and their number):
+.PP
+1 - \fBnop\fP
+.PP
+2 - \fBsecurity\fP - RFC 1108
+.PP
+3 - \fBlsrr\fP - Loose Source Routing, RFC 791
+.PP
+4 - \fBtimestamp\fP - RFC 781, 791
+.PP
+7 - \fBrecord\-route\fP - RFC 791
+.PP
+9 - \fBssrr\fP - Strict Source Routing, RFC 791
+.PP
+11 - \fBmtu\-probe\fP - RFC 1063
+.PP
+12 - \fBmtu\-reply\fP - RFC 1063
+.PP
+18 - \fBtraceroute\fP - RFC 1393
+.PP
+20 - \fBrouter-alert\fP - RFC 2113
+.PP
+Examples:
+.PP
+Match packets that have both Timestamp and NOP:
+\-m ipv4options \-\-flags nop,timestamp
+.PP
+~ that have either of Timestamp or NOP, or both:
+\-\-flags nop,timestamp \-\-any
+.PP
+~ that have Timestamp and no NOP: \-\-flags '!nop,timestamp'
+.PP
+~ that have either no NOP or a timestamp (or both conditions):
+\-\-flags '!nop,timestamp' \-\-any