diff options
author | Florian Westphal <fw@strlen.de> | 2017-08-27 22:24:19 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-08-28 17:56:58 +0200 |
commit | 071fa72b1db1ad897c19846720c3df40e9c4d574 (patch) | |
tree | 2564f1ed575d0d26a08e9aa62e6f1c04eabe1e87 /tests | |
parent | 79c09386549472ecea72c60850ee33f7a4e49e9c (diff) |
evaluate: convert expr_rt byteorder when evaluating statment arg
expr_rt might write data in host byte order, so make sure to
convert if needed.
This makes 'tcp option maxseg size rt mtu' actually work, right now such rules
are no-ops because nft_exthdr never increases the mss.
While at it, extend the example to not bother testing non-syn packets.
Reported-by: Matteo Croce <technoboy85@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/inet/rt.t.payload | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/inet/rt.t.payload b/tests/py/inet/rt.t.payload index 2f6265ed..928e0095 100644 --- a/tests/py/inet/rt.t.payload +++ b/tests/py/inet/rt.t.payload @@ -15,5 +15,6 @@ inet test-inet output # tcp option maxseg size set rt mtu inet test-inet output [ rt load tcpmss => reg 1 ] + [ byteorder reg 1 = hton(reg 1, 2, 2) ] [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ] |