diff options
Diffstat (limited to 'tests/py/inet/tcp.t.payload.ip')
-rw-r--r-- | tests/py/inet/tcp.t.payload.ip | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py/inet/tcp.t.payload.ip b/tests/py/inet/tcp.t.payload.ip index 065a2b11..79fd500a 100644 --- a/tests/py/inet/tcp.t.payload.ip +++ b/tests/py/inet/tcp.t.payload.ip @@ -421,6 +421,14 @@ ip test-ip4 input [ payload load 1b @ transport header + 13 => reg 1 ] [ cmp neq reg 1 0x00000080 ] +# tcp 'flags & (syn|fin) == (syn|fin)' +ip test-ip4 input + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ payload load 1b @ transport header + 13 => reg 1 ] + [ bitwise reg 1 = (reg=1 & 0x00000003 ) ^ 0x00000000 ] + [ cmp eq reg 1 0x00000003 ] + # tcp window 22222 ip test-ip4 input [ payload load 1b @ network header + 9 => reg 1 ] |