summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/socket.t.payload
diff options
context:
space:
mode:
authorMáté Eckl <ecklm94@gmail.com>2018-08-01 20:09:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-03 12:25:59 +0200
commit9ea0401e385e1dd3f1579a4e772aa876a5e21288 (patch)
tree44c88a4960fda27226bdd11b938d1a3871af1588 /tests/py/inet/socket.t.payload
parent029d9b3c16ae2354b6397c325a8dc389c67d970b (diff)
src: Expose socket mark via socket expression
This can be used like ct mark or meta mark except it cannot be set. doc and tests are included. Signed-off-by: Máté Eckl <ecklm94@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/socket.t.payload')
-rw-r--r--tests/py/inet/socket.t.payload15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/py/inet/socket.t.payload b/tests/py/inet/socket.t.payload
index acad2ace..687b7a45 100644
--- a/tests/py/inet/socket.t.payload
+++ b/tests/py/inet/socket.t.payload
@@ -28,3 +28,18 @@ inet sockin sockchain
[ socket load transparent => reg 1 ]
[ cmp eq reg 1 0x00000001 ]
+# socket mark 0x00000005
+ip sockip4 sockchain
+ [ socket load mark => reg 1 ]
+ [ cmp eq reg 1 0x00000005 ]
+
+# socket mark 0x00000005
+ip6 sockip6 sockchain
+ [ socket load mark => reg 1 ]
+ [ cmp eq reg 1 0x00000005 ]
+
+# socket mark 0x00000005
+inet sockin sockchain
+ [ socket load mark => reg 1 ]
+ [ cmp eq reg 1 0x00000005 ]
+