From 6bc84e04c40a2497c4c416556df09e2782059e1c Mon Sep 17 00:00:00 2001 From: "Anders K. Pedersen" Date: Sat, 29 Oct 2016 03:12:41 +0200 Subject: Replace tests/files/expr-rt with Python based tests, and replace ether type with meta nfproto, which generates a bit fewer instructions. Signed-off-by: Anders K. Pedersen Signed-off-by: Florian Westphal --- tests/py/inet/rt.t.payload | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/py/inet/rt.t.payload (limited to 'tests/py/inet/rt.t.payload') diff --git a/tests/py/inet/rt.t.payload b/tests/py/inet/rt.t.payload new file mode 100644 index 00000000..d94973e0 --- /dev/null +++ b/tests/py/inet/rt.t.payload @@ -0,0 +1,14 @@ +# meta nfproto ipv4 rt nexthop 192.168.0.1 +inet test-inet output + [ meta load nfproto => reg 1 ] + [ cmp eq reg 1 0x00000002 ] + [ rt load nexthop4 => reg 1 ] + [ cmp eq reg 1 0x0100a8c0 ] + +# meta nfproto ipv6 rt nexthop fd00::1 +inet test-inet output + [ meta load nfproto => reg 1 ] + [ cmp eq reg 1 0x0000000a ] + [ rt load nexthop6 => reg 1 ] + [ cmp eq reg 1 0x000000fd 0x00000000 0x00000000 0x01000000 ] + -- cgit v1.2.3