diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-10 18:25:13 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-10 18:35:43 +0100 |
| commit | d9e55b056e3a1a5f05c423f93a0b1008ecff1fb8 (patch) | |
| tree | 276cc58652ee2d757c74d67730a501050913e153 /sys/linux/test/udp | |
| parent | 18847f55bb3fe9db41e46a2e9e49a9f7c28143af (diff) | |
sys/linux/test: add few tests for UDP
Update #1594
Diffstat (limited to 'sys/linux/test/udp')
| -rw-r--r-- | sys/linux/test/udp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/linux/test/udp b/sys/linux/test/udp new file mode 100644 index 000000000..283b4d653 --- /dev/null +++ b/sys/linux/test/udp @@ -0,0 +1,7 @@ +# This simply creates 2 UDP sockets and sends a packet between them. + +r0 = socket$inet_udp(AUTO, AUTO, AUTO) +bind$inet(r0, &AUTO={AUTO, 0x4e20, @empty}, AUTO) +r1 = socket$inet_udp(AUTO, AUTO, AUTO) +sendto$inet(r1, &AUTO=""/10, AUTO, 0x0, &AUTO={AUTO, 0x4e20, @empty}, AUTO) +recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0) |
