aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-11-04 12:38:48 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-11-04 12:39:39 +0100
commite2d61622eb61b451cb2cc72684154fafa1977eef (patch)
tree9e07e887e8fd276da1486a0c12f975dfdc2dcc5d /sys/linux/test
parentb35fad31e9c2d4a970d051deff80ec7cc4c3e459 (diff)
sys/linux: improve CAN descriptions
Diffstat (limited to 'sys/linux/test')
-rw-r--r--sys/linux/test/can9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/linux/test/can b/sys/linux/test/can
new file mode 100644
index 000000000..adaa6c271
--- /dev/null
+++ b/sys/linux/test/can
@@ -0,0 +1,9 @@
+r0 = socket$can_j1939(AUTO, AUTO, AUTO)
+ioctl$ifreq_SIOCGIFINDEX_vcan(r0, AUTO, &AUTO={'vxcan0\x00', <r1=>0x0})
+bind$can_j1939(r0, &AUTO={AUTO, r1, 0x0, {0x0, 0x0, 0x0, 0x0}, 0x0}, AUTO)
+r2 = socket$can_j1939(AUTO, AUTO, AUTO)
+ioctl$ifreq_SIOCGIFINDEX_vcan(r2, AUTO, &AUTO={'vxcan1\x00', <r3=>0x0})
+bind$can_j1939(r2, &AUTO={AUTO, r3, 0x0, {0x0, 0x0, 0x0, 0x0}, 0x0}, AUTO)
+connect$can_j1939(r2, &AUTO={AUTO, r3, 0x0, {0x0, 0x0, 0x0, 0x0}, 0x0}, AUTO)
+sendmsg$can_j1939(r2, &AUTO={0x0, 0x0, &AUTO={'data', 0x4}, 0x1, 0x0, 0x0, 0x0}, 0x0)
+recvmsg$can_j1939(r0, &AUTO={0x0, 0x0, &AUTO={'----', 0x4}, 0x1, 0x0, 0x0, 0x0}, 0x0)