aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-02-18 10:21:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-02-18 10:31:04 +0100
commit012fbc3229ebef871a201ea431b16610e6e0d345 (patch)
treed91738eb7ca581e205f9719451fc64285521f85a /sys/linux/test
parentd52d4872e357a88800726f671e237a2a8e3c201f (diff)
sys/linux: add descriptions of wireguard packets
Diffstat (limited to 'sys/linux/test')
-rw-r--r--sys/linux/test/udp22
-rw-r--r--sys/linux/test/wireguard2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/linux/test/udp2 b/sys/linux/test/udp2
index a0247700f..b8280ee85 100644
--- a/sys/linux/test/udp2
+++ b/sys/linux/test/udp2
@@ -2,5 +2,5 @@
r0 = socket$inet_udp(AUTO, AUTO, AUTO)
bind$inet(r0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
-syz_emit_ethernet(AUTO, &AUTO={@local, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x0, 0x0, 0x0, AUTO, 0x0, @empty, @empty, {[]}}, {0x0, 0x4e20, AUTO, 0x0, [], ""/10}}}}}, 0x0)
+syz_emit_ethernet(AUTO, &AUTO={@local, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x0, 0x0, 0x0, AUTO, 0x0, @empty, @empty, {[]}}, {0x0, 0x4e20, AUTO, 0x0, @opaque=""/10}}}}}, 0x0)
recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0)
diff --git a/sys/linux/test/wireguard b/sys/linux/test/wireguard
new file mode 100644
index 000000000..1933bc969
--- /dev/null
+++ b/sys/linux/test/wireguard
@@ -0,0 +1,2 @@
+syz_emit_ethernet(AUTO, &AUTO={@local, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x0, 0x0, 0x0, AUTO, 0x0, @empty, @empty, {[]}}, {0x0, 0x4e22, AUTO, 0x0, @wg=@initiation={AUTO, 0x0, "", "", "", {"", ""}}}}}}}, 0x0)
+syz_emit_ethernet(AUTO, &AUTO={@local, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x0, 0x0, 0x0, AUTO, 0x0, @empty, @empty, {[]}}, {0x0, 0x4e22, AUTO, 0x0, @wg=@data={AUTO, 0x0, 0x0, ""/100}}}}}}, 0x0)