summaryrefslogtreecommitdiffstats
path: root/doc/data-types.txt
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-12-02 18:58:01 +0100
committerPhil Sutter <phil@nwl.cc>2020-12-08 13:38:46 +0100
commit08a04414f24e21a07e58c2ccc750e1a57d4da6b6 (patch)
treeb4bcd3432987749fc42060f9516c1b9b7cc6ec24 /doc/data-types.txt
parentd357e27aa45870f2955d7a57c7c860d3ec7145c4 (diff)
doc: Document 'dccp type' match
Add a description of dccp_pkttype and extend DCCP header expression synopsis by the 'type' argument. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'doc/data-types.txt')
-rw-r--r--doc/data-types.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/data-types.txt b/doc/data-types.txt
index a42a55fa..961fc624 100644
--- a/doc/data-types.txt
+++ b/doc/data-types.txt
@@ -492,3 +492,46 @@ For each of the types above, keywords are available for convenience:
|==================
Possible keywords for conntrack label type (ct_label) are read at runtime from /etc/connlabel.conf.
+
+DCCP PKTTYPE TYPE
+~~~~~~~~~~~~~~~~
+[options="header"]
+|==================
+|Name | Keyword | Size | Base type
+|DCCP packet type |
+dccp_pkttype |
+4 bit |
+integer
+|===================
+
+The DCCP packet type abstracts the different legal values of the respective
+four bit field in the DCCP header, as stated by RFC4340. Note that possible
+values 10-15 are considered reserved and therefore not allowed to be used. In
+iptables' *dccp* match, these values are aliased 'INVALID'. With nftables, one
+may simply match on the numeric value range, i.e. *10-15*.
+
+.keywords may be used when specifying the DCCP packet type
+[options="header"]
+|==================
+|Keyword |Value
+|request|
+0
+|response|
+1
+|data|
+2
+|ack|
+3
+|dataack|
+4
+|closereq|
+5
+|close|
+6
+|reset|
+7
+|sync|
+8
+|syncack|
+9
+|=================