]> rtime.felk.cvut.cz Git - sojka/can-utils.git/blob - include/socketcan/can/raw.h
b7945004be16134af23750bca7a4f27e6d236738
[sojka/can-utils.git] / include / socketcan / can / raw.h
1 /*
2  * socketcan/can/raw.h
3  *
4  * Definitions for raw CAN sockets
5  *
6  * $Id$
7  *
8  * Authors: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
9  *          Urs Thuermann   <urs.thuermann@volkswagen.de>
10  * Copyright (c) 2002-2007 Volkswagen Group Electronic Research
11  * All rights reserved.
12  *
13  * Send feedback to <linux-can@vger.kernel.org>
14  *
15  */
16
17 #ifndef CAN_RAW_H
18 #define CAN_RAW_H
19
20 #include <socketcan/can.h>
21
22 #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
23
24 /* for socket options affecting the socket (not the global system) */
25
26 enum {
27         CAN_RAW_FILTER = 1,     /* set 0 .. n can_filter(s)          */
28         CAN_RAW_ERR_FILTER,     /* set filter for error frames       */
29         CAN_RAW_LOOPBACK,       /* local loopback (default:on)       */
30         CAN_RAW_RECV_OWN_MSGS   /* receive my own msgs (default:off) */
31 };
32
33 #endif