From c2b389b48b08d0b013ca0c588d895178f3c3b02b Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 16 Mar 2018 20:15:50 +0100 Subject: tests: add srh test cases Signed-off-by: Florian Westphal --- tests/py/ip6/srh.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/py/ip6/srh.t (limited to 'tests/py/ip6/srh.t') diff --git a/tests/py/ip6/srh.t b/tests/py/ip6/srh.t new file mode 100644 index 00000000..442c78f0 --- /dev/null +++ b/tests/py/ip6/srh.t @@ -0,0 +1,22 @@ +:input;type filter hook input priority 0 + +*ip6;test-ip6;input + +srh last-entry 0;ok +srh last-entry 127;ok +srh last-entry { 0, 4-127, 255 };ok;srh last-entry { 0, 4-127, 255-255} + +srh flags 0;ok +srh flags 127;ok +srh flags { 0, 4-127, 255 };ok;srh flags { 0, 4-127, 255-255} + +srh tag 0;ok +srh tag 127;ok +srh tag { 0, 4-127, 0xffff };ok;srh tag { 0, 4-127, 65535-65535} + +srh sid[1] dead::beef;ok +srh sid[2] dead::beef;ok + +srh last-entry { 0, 4-127, 256 };fail +srh flags { 0, 4-127, 256 };fail +srh tag { 0, 4-127, 0x10000 };fail -- cgit v1.2.3