diff options
author | Florian Westphal <fw@strlen.de> | 2020-11-02 20:10:25 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-11-09 12:19:31 +0100 |
commit | 881d8cb21c0b9168787b932f41b801593bde2216 (patch) | |
tree | b5322deba14ab126822709b4a7691c6702d13f3a /tests/py/any/tcpopt.t.payload | |
parent | 24d8da3083422da8336eeed2ee23b2ccf598ba5a (diff) |
tcp: add raw tcp option match support
tcp option @42,16,4 (@kind,offset,length).
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/tcpopt.t.payload')
-rw-r--r-- | tests/py/any/tcpopt.t.payload | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/py/any/tcpopt.t.payload b/tests/py/any/tcpopt.t.payload index 34f8e26c..cddba613 100644 --- a/tests/py/any/tcpopt.t.payload +++ b/tests/py/any/tcpopt.t.payload @@ -523,6 +523,13 @@ inet [ exthdr load tcpopt 1b @ 255 + 0 present => reg 1 ] [ cmp eq reg 1 0x00000000 ] +# tcp option @255,8,8 255 +inet + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ exthdr load tcpopt 1b @ 255 + 1 => reg 1 ] + [ cmp eq reg 1 0x000000ff ] + # tcp option window exists inet [ meta load l4proto => reg 1 ] |