aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-10-04 16:12:12 +0200
committerAndrey Konovalov <andreyknvl@google.com>2016-11-29 17:39:38 +0100
commitc5707f5e575f3a4220faede18a51f7a8c7ee1377 (patch)
treed7b264b52b8ce35cd6de3db86dc742a30f980bfc /sys
parent72e9b239f4d6b71e43acee4ca76de04e893400e8 (diff)
executor: emit ethernet traffic
Diffstat (limited to 'sys')
-rw-r--r--sys/vnet.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/vnet.txt b/sys/vnet.txt
new file mode 100644
index 000000000..e115e701c
--- /dev/null
+++ b/sys/vnet.txt
@@ -0,0 +1,11 @@
+# Copyright 2016 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+include <linux/types.h>
+include <linux/byteorder/generic.h>
+
+eth_packet {
+ data array[int8, 0:256]
+} [packed]
+
+syz_emit_ethernet(len len[packet], packet ptr[in, eth_packet])