summaryrefslogtreecommitdiff
path: root/include/uapi/linux/can/raw.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-10-11 02:57:16 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-10-11 02:57:16 (GMT)
commit959859d2fe88fb26e37985445817ef5234bf9a31 (patch)
tree36957f514bb0d4336863e7673f4251eacd54b20a /include/uapi/linux/can/raw.h
parent68aaed54e7682aef261d5c2cf99e85a9dbf33a84 (diff)
parent922cd657c95fe3e4214d68a958e98288b7a55bba (diff)
downloadlinux-fsl-qoriq-959859d2fe88fb26e37985445817ef5234bf9a31.tar.xz
Merge branch 'uapi-for-3.7' of git://gitorious.org/linux-can/linux-can
Marc Kleine-Budde says: ==================== this pull request for net, i.e. the v3.7 release cycle, contains the patch by David Howells to move the UAPI related headers for the CAN subsystem. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/can/raw.h')
-rw-r--r--include/uapi/linux/can/raw.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/uapi/linux/can/raw.h b/include/uapi/linux/can/raw.h
new file mode 100644
index 0000000..a814062
--- /dev/null
+++ b/include/uapi/linux/can/raw.h
@@ -0,0 +1,30 @@
+/*
+ * linux/can/raw.h
+ *
+ * Definitions for raw CAN sockets
+ *
+ * Authors: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
+ * Urs Thuermann <urs.thuermann@volkswagen.de>
+ * Copyright (c) 2002-2007 Volkswagen Group Electronic Research
+ * All rights reserved.
+ *
+ */
+
+#ifndef CAN_RAW_H
+#define CAN_RAW_H
+
+#include <linux/can.h>
+
+#define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
+
+/* for socket options affecting the socket (not the global system) */
+
+enum {
+ CAN_RAW_FILTER = 1, /* set 0 .. n can_filter(s) */
+ CAN_RAW_ERR_FILTER, /* set filter for error frames */
+ CAN_RAW_LOOPBACK, /* local loopback (default:on) */
+ CAN_RAW_RECV_OWN_MSGS, /* receive my own msgs (default:off) */
+ CAN_RAW_FD_FRAMES, /* allow CAN FD frames (default:off) */
+};
+
+#endif