diff options
author | Nicolas Maier <nicolas.maier.dev@gmail.com> | 2024-01-20 11:10:18 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-02-12 18:55:17 +0300 |
commit | fec846fa7eddf7bb651bf88bd78c7db1410ae3b1 (patch) | |
tree | 4e8d090eb94914f01777cd65420040a14f69d6ae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 970cb1ceda170a3e583a5f26afdbebdfe5bf5a80 (diff) | |
download | linux-fec846fa7eddf7bb651bf88bd78c7db1410ae3b1.tar.xz |
can: bcm: add recvmsg flags for own, local and remote traffic
CAN RAW sockets allow userspace to tell if a received CAN frame comes
from the same socket, another socket on the same host, or another host.
See commit 1e55659ce6dd ("can-raw: add msg_flags to distinguish local
traffic"). However, this feature is missing in CAN BCM sockets.
Add the same feature to CAN BCM sockets. When reading a received frame
(opcode RX_CHANGED) using recvmsg, two flags in msg->msg_flags may be
set following the previous convention (from CAN RAW), to distinguish
between 'own', 'local' and 'remote' CAN traffic.
Update the documentation to reflect this change.
Signed-off-by: Nicolas Maier <nicolas.maier.dev@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20240120081018.2319-1-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions