From 012fbc3229ebef871a201ea431b16610e6e0d345 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 18 Feb 2020 10:21:00 +0100 Subject: sys/linux: add descriptions of wireguard packets --- sys/linux/test/udp2 | 2 +- sys/linux/test/wireguard | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 sys/linux/test/wireguard (limited to 'sys/linux/test') 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) -- cgit mrf-deployment