Browse Source

tests/gnrc_ipv6_ext: update README.md

patch-1
Takuo Yonezawa 6 years ago
parent
commit
3193cf8aa7
  1. 19
      tests/gnrc_ipv6_ext/README.md
  2. 10
      tests/gnrc_ipv6_ext/tests/01-run.py

19
tests/gnrc_ipv6_ext/README.md

@ -5,33 +5,20 @@ This test sends a packet to itself with extension headers. This is based on gnrc
Enable debug output of `gnrc_ipv6.c` before run. When the test is run, it should show the following debug output:
```
ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 40)
ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 42)
ipv6: forward nh = 0 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 0)
ipv6: forward nh = 43 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 43)
ipv6: waiting for incoming message.
ipv6: GNRC_NETAPI_MSG_TYPE_RCV received
ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 40)
ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 42)
ipv6: forward nh = 0 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 0)
ipv6: forward nh = 43 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 43)
ipv6: waiting for incoming message.
ipv6: GNRC_NETAPI_MSG_TYPE_RCV received
ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 40)
ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 42)
ipv6: forward nh = 0 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 0)
ipv6: forward nh = 43 to other threads
ipv6: unable to forward packet as no one is interested in it
ipv6: handle extension header (nh = 43)
ipv6: forward nh = 17 to other threads
ipv6: Send receive command for 0x1060b8 to 5
ipv6: waiting for incoming message.
pkt->users: 0
```

10
tests/gnrc_ipv6_ext/tests/01-run.py

@ -15,7 +15,7 @@ import testrunner
def testfunc(child):
index = child.expect_exact([
"ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 40)",
"ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 42)",
"pkt->users: 0"
])
@ -25,16 +25,16 @@ def testfunc(child):
return
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 40)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 42)")
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 40)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 42)")
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: forward nh = 17 to other threads")
child.expect_exact("pkt->users: 0")
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 40)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::3, next header = 0, length = 42)")
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 40)")
child.expect_exact("ipv6: Received (src = fd01::1, dst = fd01::2, next header = 0, length = 42)")
child.expect_exact("ipv6: handle extension header (nh = 0)")
child.expect_exact("ipv6: forward nh = 17 to other threads")
child.expect_exact("pkt->users: 0")

Loading…
Cancel
Save